Skip to content

Commit cfe1224

Browse files
committed
fixedcustom select extension to respect the prototype alterations Fixes jquery-archive#2272
1 parent 781c243 commit cfe1224

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

js/jquery.mobile.forms.select.custom.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,11 @@
459459
});
460460
};
461461

462-
$( "select:jqmData(native-menu='false')" ).live( "selectmenubeforecreate", function(){
462+
$( "select" ).live( "selectmenubeforecreate", function(){
463463
var selectmenuWidget = $( this ).data( "selectmenu" );
464464

465-
extendSelect( selectmenuWidget );
465+
if( !selectmenuWidget.options.nativeMenu ){
466+
extendSelect( selectmenuWidget );
467+
}
466468
});
467469
})( jQuery );

0 commit comments

Comments
 (0)