Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
disabled custom selects will now enhance Fixes #3894
  • Loading branch information
johnbender committed Mar 23, 2012
1 parent 81c7555 commit 1b2ab95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/jquery.mobile.forms.select.custom.js
Expand Up @@ -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 );
Expand Down

0 comments on commit 1b2ab95

Please sign in to comment.