When opening and closing modal I get: "Could not find Livewire component in DOM tree"

I just upgraded to filament V4 and found out this is happening, but can't figure out why. I've found two posts related to this on here and one online regarding grammerly extension causing issue, but nothing helps me here. Tried with Brave and Firefox, same thing. public function editTableAction(): Action { return Action::make('edit') ->label('Edit') ->requiresConfirmation() ->icon('heroicon-o-pencil') ->modalHeading('Edit Document') ->modalDescription('Edit the document details. Content will be auto-saved.') ->modalIcon('heroicon-o-document-text') ->modalWidth(Width::FiveExtraLarge) ->closeModalByClickingAway(true) ->modalCloseButton(false) ->modalSubmitActionLabel('Save') ->fillForm(function (Model $record) { return [ 'name' => $record->name, 'content' => $record->content, ]; }) ->schema([ TextInput::make('name') ->required() ->maxLength(255), RichEditor::make('content') ->required() ->maxLength(65535) ->disableToolbarButtons([ 'attachFiles', 'blockquote', 'codeBlock', 'h2', 'h3' ]) ->columnSpanFull()
Solution:
Found out the issue, so if I comment out the live() method it's not causing error any more: `RichEditor::make('content') ->required() ->maxLength(65535)...
Jump to solution
10 Replies
lukaveck1
lukaveck1OP2w ago
Dennis Koch
Dennis Koch2w ago
Can you share your php artisan about --only=filament output?
lukaveck1
lukaveck1OP2w ago
Filament .........................................................................................................................................
Blade Icons ........................................................................................................................... NOT CACHED
Packages ................................................... filament, forms, notifications, support, tables, actions, infolists, schemas, widgets
Panel Components ...................................................................................................................... NOT CACHED
Version .................................................................................................................................. v4.0.20
Views .............................................................................................................................. NOT PUBLISHED
Dennis Koch
Dennis Koch2w ago
Hm, looks good
lukaveck1
lukaveck1OP2w ago
No description
lukaveck1
lukaveck1OP2w ago
I noticed this in console also under issues, the error triggers when I open modal
lukaveck1
lukaveck1OP2w ago
No description
lukaveck1
lukaveck1OP2w ago
This line toggled Content LABEL div
Solution
lukaveck1
lukaveck12w ago
Found out the issue, so if I comment out the live() method it's not causing error any more: RichEditor::make('content') ->required() ->maxLength(65535) ->disableToolbarButtons([ 'attachFiles', 'blockquote', 'codeBlock', 'h2', 'h3' ]) ->columnSpanFull() //->live(debounce: 2500)
lukaveck1
lukaveck1OP2w ago
That error incorrect use of <label for.. is still present though.

Did you find this page helpful?