File upload validation error, when using with ckeditor file browser

There is a wired error when using upload with CKEditor file browser.

Uncaught TypeError: _this is undefined
    clearFileInputValue FileUploads.js:37

The above error happens when I validate the file like below although I upload the valid file format.

$this->validate([
	'file' => ['required', 'image', 'max:2048'],
]);

But not issue with this one

$this->validate([
	'file' => ['required',  'max:2048'],
]);

Context

  • Livewire version: 2.2.3
  • Laravel version: 8.17
  • Alpine version: 2.7.3
  • Browser: [Chrome, FireFox]

Could you share a code example of how you got ckeditor working?
Everytime after validation fails, ckeditor dissapears, even when using wire:ignore

Thanks!