Skip to content

Commit b307c00

Browse files
committed
fixed: resize now forces a close the list, follow-up fnagel#147
1 parent b914da6 commit b307c00

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,7 @@ $.widget("ui.selectmenu", {
254254
.bind( 'mousedown.selectmenu mouseup.selectmenu', function() { return false; });
255255

256256
// needed when window is resized
257-
// TODO seems to be useless, but causes errors (fnagel 01.08.11)
258-
// see: https://github.com/fnagel/jquery-ui/issues/147
259-
// $(window).bind( "resize.selectmenu", $.proxy( self._refreshPosition, this ) );
257+
$(window).bind( "resize.selectmenu", $.proxy( self.close, this ) );
260258
},
261259

262260
_init: function() {

0 commit comments

Comments
 (0)