diff options
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index a6ce85f0c..80f40fb23 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -233,13 +233,15 @@ $.widget( "ui.selectmenu", { close: function( event ) { if ( this.isOpen ) { - var id = this._getSelectedItem().find( "a" ).attr( "id" ); - this.isOpen = false; - this._toggleAttr(); - this.button.attr( "aria-activedescendant", id ); - this.menu.attr( "aria-activedescendant", id ); - this._trigger( "close", event ); + return false; } + + var id = this._getSelectedItem().find( "a" ).attr( "id" ); + this.isOpen = false; + this._toggleAttr(); + this.button.attr( "aria-activedescendant", id ); + this.menu.attr( "aria-activedescendant", id ); + this._trigger( "close", event ); }, widget: function() { |