-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Removaing image does not update attribute #9
Comments
when I have multiple files But i want to remove just one.this time what can I do? |
As a workaround for now, until we get some solid solution, I have disabled the preview functionality for existing files using Filepond, I created a thumbnail or thumbnails for existing files, (with cross signs) and to upload new files, I am using filepond. Simplifies my logic a log, just duplicate variables to handle the functionality. |
did you find a solution for this ? |
no :) |
I'll check and try some methods once it works I'll share it here |
please |
Issue Description
When you upload an image, save the record, then edit the form, and remove the image, the attribute is not updated correctly.
Suggested Solution
To address this issue, update the
remove
method in your FilePond configuration to ensure that Livewire is correctly notified about the file removal. Instead of usingfile.name
to remove the file, you should set the attribute to an empty string, which will clear the current value.Here is the updated code:
How to Reproduce the Issue
The text was updated successfully, but these errors were encountered: