From: Felix Nagel Date: Sat, 16 Apr 2011 16:07:45 +0000 (+0200) Subject: fixed: select option when tabbing out of opened menu, thx to mjt5v, see https://githu... X-Git-Tag: selectmenu_v1.1.0~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=63c72c2bfd5c08539bc5590beac80153fa2ec1db;p=jquery-ui.git fixed: select option when tabbing out of opened menu, thx to mjt5v, see https://github.com/fnagel/jquery-ui/issues/98 --- diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 9cd018477..a5992b1a4 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -218,6 +218,7 @@ $.widget("ui.selectmenu", { case $.ui.keyCode.TAB: ret = true; self.close(event, true); + $(event.target).parents('li:eq(0)').trigger('mouseup'); break; case $.ui.keyCode.ESCAPE: self.close(event, true);