FileUpload works in widget but error in livewire component #12733
Unanswered
glenelkinsdev
asked this question in
Help
Replies: 1 comment 3 replies
-
public function mount(): void
{
$this->form->fill();
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package
Form builder
Package Version
3
How can we help you?
I have a FileUpload component in a widget, this widget is loaded into a page header widgets and works perfectly
However, if i replicate the same code in a livewire component which i display in a modal it gives me an error which i don't understand since a widget inherits a livewire component.
So i load the component into my modal view like this:
@livewire('attachment-upload')
My form in the component is basic:
And the php is practically the same as the widget:
When i select a file in this one the js console gives this error:
Beta Was this translation helpful? Give feedback.
All reactions