petalframework / petal_components

Phoenix + Live View HEEX Components
https://petal.build/components
MIT License
767 stars 84 forks source link

ImageUpload wipes entered data from other form elements #288

Open chris838 opened 6 months ago

chris838 commented 6 months ago

To reproduce, go to Settings -> Edit Profile in a generated Petal app.

If you make changes first to the name, and then profile image, the name changes are lost as soon as an image is selected.

Not a big deal in this example, but if your form has many elements, the user loses all their entered data if one of those elements requires selecting an image to upload.