Fix sort by dropdown selection

This commit is contained in:
Champ Camba
2019-11-10 19:38:07 +08:00
parent 311ccc02ea
commit fc5baad41c
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -50,8 +50,11 @@ function um_init_new_dropdown() {
obj.data( 'um-new-dropdown-show', true );
jQuery( document.body ).bind( 'click', function( event ) {
if ( jQuery('.um-new-dropdown').find( '.' + jQuery( event.target ).attr('class').trim().replace( ' ', '.' ) ).length === 0 &&
jQuery( '.' + jQuery(event.target).parent().attr('class').trim() ) !== element ) {
jQuery( '.' + jQuery(event.target).attr('class').trim() ) !== element ) {
//event = ev;
jQuery('.um-new-dropdown').hide();
jQuery('.um-new-dropdown').parent().data( 'um-new-dropdown-show', false );