Skip to content

Commit 8cc74e5

Browse files
committed
makes scrollbar work with custom scrollbar plugin, fixes #308
1 parent e6f1e9d commit 8cc74e5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ui/jquery.ui.selectmenu.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,12 @@ $.widget("ui.selectmenu", {
261261
return true;
262262
})
263263
// this allows for using the scrollbar in an overflowed list
264-
.bind( 'mousedown.selectmenu mouseup.selectmenu', function() { return false; });
264+
.bind( 'mousedown.selectmenu mouseup.selectmenu', function(e) {
265+
// supports custom scroll bar and other plugins which wrap the selectmenu content
266+
if (e.target.hasAttribute('href') && e.target.hash==='#nogo') {
267+
return false;
268+
}
269+
});
265270

266271
// needed when window is resized
267272
$( window ).bind( "resize.selectmenu-" + this.ids[ 0 ], $.proxy( self.close, this ) );

0 commit comments

Comments
 (0)