File doesn't remove from submit data
See original GitHub issueDescribe the bug
File doesn’t remove from data in the submitHandler(data)
after click on remove icon.
To Reproduce Steps to reproduce the behavior:
- Go to this codepen and open debug view (In edit mode, the file field does not work for me)
- Add the file to the avatar field
- Click on
Save profile
. Now the uploaded file can be seen in the data object - Click on remove icon. File removed from field, but:
- Click on
Save profile
. The file is still present in the data object
Reproduction CodePen: https://codepen.io/maksabuzyarov/pen/vYGppEa
Expected behavior I think that the file description should not be present in the data object after deleting it
Screenshots
-
File added, clicked on
Save profile
. -
File removed. clicked on
Save profile
.
Device information:
- Device: notebook MSI
- OS: Windows 10
- Browser: Google Chrome 85.0.4183.83
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
How do I remove a file from the FileList - Stack Overflow
In my case I was uploading the files via XMLHttp request, so I was able to post the FileList cloned data through formdata...
Read more >How to Force Delete A File on Windows 11/10/8/7? [Can't ...
Fast fix - you can use Shift + Delete to delete files or folders permanently. If you still can't delete files in Windows...
Read more >File input doesn't correctly work when removing file
To remove the file, I created a method removeFile(). First, I've tried to remove the file from the file list doing this: this.files.splice(index,...
Read more >Deleting Files Doesn't Destroy Your Data - ERI
For others, you might right-click and choose “Delete File” from the menu. With Windows, you'll see a trash can on your main screen...
Read more >Remove a file from commit history doesn't remove the file and ...
After we have committed an unexpected file into repository, and merged it into the master branch by a pull request, we can remove...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Damn, a regression eh? Thats why having tests on these things would be really nice…ok I’ll reopen this. in the meantime lock 2.4.4 in
@acemir I think this has to do with the updates in 2.4.5 in your PR. I imagine its an easy fix, any chance you want to tackle it?