generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
The following code doesn't have the correct syntax and throws an error when used.
$dispatch('filepond-upload-started', '{{ $wireModelAttribute }}');
I believe it should be the following.
$dispatch('filepond-upload-started', {'attribute' : '{{ $wireModelAttribute }}'});
This is found within the published vendor code.
/vendor/livewire-filepond/upload.blade.php
How to reproduce the bug
Within a livewire or volt component.
public function getListeners()
{
return [
'filepond-upload-started' => 'handleFilePondUploadInProgress',
'filepond-upload-completed' => 'handleFilePondUploadComplete',
];
}
public function handleFilePondUploadComplete($name = null)
{
Log::info('WW Upload completed', ['name' => $name]);
}
public function handleFilePondUploadInProgress($name = null)
{
Log::info('WW Upload started', ['name' => $name]);
}
Package Version
1.5.0
PHP Version
8.2
Laravel Version
12.28.1
Which operating systems does with happen with?
Linux, macOS
Notes
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working