Form with Textarea on custom widget causing JS errors
I have a custom widget added to a resource view page. The widget is implementing a form according to https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component. My form is for adding comments, so its quite simple:
However, this is causing JS errors in my Browser console:
Is this a filament bug or an issue on my end? I am on the latest filament version π€ The error disappears, if I change from Textarea to Textinput in my form.
Is this a filament bug or an issue on my end? I am on the latest filament version π€ The error disappears, if I change from Textarea to Textinput in my form.
3 Replies
It appears that the issue is somehow caused by the fact that the Resource defines an infolist, which gets rendered on my ViewPage π€
did you add
$this->form->fill()
in the mount method?Yes π