spatie / livewire-filepond

Upload files using Filepond in Livewire components
https://spatie.be/open-source
MIT License
233 stars 18 forks source link

[Bug]: Uncaught SyntaxError: missing } after property list #22

Closed iforwms closed 1 month ago

iforwms commented 1 month ago

What happened?

Install filepond with Laravel, Livewire and AplineJS, filepond error.

The error can be found here: resources/views/vendor/livewire-filepond/upload.blade.php lines 69 and 75 are missing a closed bracket.

Line 69: $dispatch('filepond-upload-reverted', {'attribute' : '{{ $wireModelAttribute }}'); should be $dispatch('filepond-upload-reverted', {'attribute' : '{{ $wireModelAttribute }}'}); Line 75: $dispatch('filepond-upload-file-removed', {'attribute' : '{{ $wireModelAttribute }}'); should be $dispatch('filepond-upload-file-removed', {'attribute' : '{{ $wireModelAttribute }}'});

Version used: "spatie/livewire-filepond": "^1.2"

How to reproduce the bug

Install filepond with Laravel, Livewire and AplineJS, filepond error - Unexpected syntax error: missing }.

Package Version

1.2

PHP Version

8.2

Laravel Version

11.9

Which operating systems does with happen with?

macOS, Linux

Notes

No response

riasvdv commented 1 month ago

Are you on the latest version? This should be fixed in 1.2.3