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
There is a bug in the cmb.js file for file_list file input which after all file or file_lists have been selected and then if user reselect some more files in file_list or file inputs then the result is appended in wrong file input.
I found the fix.
It was the wrong selector object used. Please correct it for others.
In cmb2.js inside cmb.mediaHandlers.list function change the selector for appending the result from :
at line number 232.
Hope that helps the plugin developer and community, wasted 2 days to fix this bug.
The text was updated successfully, but these errors were encountered:
shivgre
changed the title
multiple file uploads appending results to wrong file upload after all file uploads are filled
multiple file uploads appending results to wrong file upload after all file uploads are filled in frontend form
Apr 21, 2015
cmb.mediaHandlers.* are redefined on the first click of each “file” or
“file_list” on the page. Each time .list and .single are redefined the
local variables for the current “file” and “file_list” are closed over.
This breaks the handlers for any previously clicked “files” and
“file_lists”. Variables have been moved into the handlers themselves
rather than rewriting the handlers.
In reference to :CMB2#250,
CMB2#296
There is a bug in the cmb.js file for file_list file input which after all file or file_lists have been selected and then if user reselect some more files in file_list or file inputs then the result is appended in wrong file input.
I found the fix.
It was the wrong selector object used. Please correct it for others.
In cmb2.js inside cmb.mediaHandlers.list function change the selector for appending the result from :
to :
at line number 232.
Hope that helps the plugin developer and community, wasted 2 days to fix this bug.
The text was updated successfully, but these errors were encountered: