forked from select2/select2
-
Notifications
You must be signed in to change notification settings - Fork 28
Cannot read property 'trim' of undefined #46
Copy link
Copy link
Open
Description
Hello guys,
After updating the WooCommerce plugin to the latest version 5.4.0 - the select2 script stop working.
Main shop page - on dropdown click, I got - Cannot read property 'trim' of undefined
https://imgur.com/DlFV0A8
https://imgur.com/dfbDqrL
JS code which we use
this.holder = [];
this.holder.push(
{
holder: $( '.woocommerce-ordering select' ),
options: {
minimumResultsForSearch: Infinity
}
}
);
if ( typeof this.holder === 'object' ) {
$.each(
this.holder,
function ( key, value ) {
if ( typeof value.holder.select2 === 'function' ) {
value.holder.select2( value.options );
}
}
);
}
Best regards,
Nenad
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels