-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Ajax sorting and deleting is messing up the JavaScript object of the file input. #1152
Comments
Can you check and confirm if this solves it? Will reopen if needed. |
Thanks for quick reply. Unfortunately the bug still exist. I made another video on my local project. After delete a file the object returned by the event $('.file-loading').on('filesorted', function(event, params) { ... } it's broken. |
You can check now. |
Still happening. This is video made after update. I do not understand why the object is corrupted after the sorting and the removal action. |
Sorry, cannot reproduce your issue. You probably do not have the latest plugin JS code on your test app. You can try and cross check with ajax demo 6 or ajax demo 5 where the scenario works fine. |
Prerequisites
master
branch of bootstrap-fileinput.Steps to reproduce the issue
Expected behavior and actual behavior
When I follow those steps, sometimes after deleted a file, and i want to sort the gallery, the object that is returned by the event $('.file-loading').on('filesorted', function(event, params) { ... } it's broken. The file that was deleted does not appear in the preview, but it is present in object, or i have files in the preview that do not appear in the object, or i have null item in object.
I need the correct object, according with the preview, to call sort method on my server. To understand better the issue i make a video with this problem using your demo.
In my case after automatically uploaded the files, I can sort them, delete them, but if I try to delete a file and then sort them, sometimes the object is broken. I can not identify a clear scenario when this problem happens and when it does not happen.
Environment
Browsers
Operating System
Libraries
Isolating the problem
The text was updated successfully, but these errors were encountered: