Skip to content
Browse files

disabled custom selects will now enhance Fixes #3894

  • Loading branch information...
1 parent 81c7555 commit 1b2ab95b3de0cb87ac3843662780f05157f2fe8d @johnbender johnbender committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/jquery.mobile.forms.select.custom.js
View
5 js/jquery.mobile.forms.select.custom.js
@@ -531,8 +531,9 @@ define( [
});
};
- $( document ).delegate( "select", "selectmenubeforecreate", function(){
- var selectmenuWidget = $( this ).data( "selectmenu" );
+ // issue #3894 - core doesn't trigger events to disabled delegates
+ $( document ).bind( "selectmenubeforecreate", function( event ){
+ var selectmenuWidget = $( event.target ).data( "selectmenu" );
if( !selectmenuWidget.options.nativeMenu ){
extendSelect( selectmenuWidget );

0 comments on commit 1b2ab95

Please sign in to comment.
Something went wrong with that request. Please try again.