[wp-trac] [WordPress Trac] #35181: Using Lodash makes media_upload dialog unable to use
WordPress Trac
noreply at wordpress.org
Mon Dec 21 10:38:00 UTC 2015
#35181: Using Lodash makes media_upload dialog unable to use
--------------------------+-----------------------------
Reporter: anhntbk08 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.4
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I'm writing a plugin with Angular and Wordpress. When i declared
[https://lodash.com/] the media_upload is unable to use. Medias will be
shown up but you can't Pick them and the 'select' event will not be fired.
There is no error on javascript.
{{{
var frame = wp.media.frames.file_frame = wp.media({
library: {
type: 'image'
},
frame: 'select',
multiple: true
});
frame.off('select');
frame.open();
// this won't be triggered
frame.on('select', function () {
}}}
If i remove lodash, everything is ok.
Thanks
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35181>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list