You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See initialPreviewConfig by entering this in web console: JSON.stringify($('#input-pd').data('fileinput').initialPreviewConfig)
Now you can see that desert image still persist and lighthouse is removed!
What cause this:
Unset function use index from html data-fileindex, but this is constant and unchanged after sorting.
Solution:
Update data-fileindex after rearrange
The text was updated successfully, but these errors were encountered:
koxu1996
changed the title
Bug: unexpected initialPreviewConfig after deleting rearranged images
Wrong item removed from initialPreviewConfig after rearrange and delete
Oct 25, 2016
Simple reproduce:
JSON.stringify($('#input-pd').data('fileinput').initialPreviewConfig)
What cause this:
Unset function use index from html
data-fileindex
, but this is constant and unchanged after sorting.Solution:
Update data-fileindex after rearrange
The text was updated successfully, but these errors were encountered: