diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-02-23 19:37:31 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-02-23 19:39:43 +0100 |
commit | 58a5e23a7882e4438e60e354f3f2125562f9a540 (patch) | |
tree | b2df680eb6fea5bffa75b9879431acd4e4455229 /ui | |
parent | fa40c352af59258362d17e2f1e8642343b1ae3c0 (diff) | |
download | jquery-ui-58a5e23a7882e4438e60e354f3f2125562f9a540.tar.gz jquery-ui-58a5e23a7882e4438e60e354f3f2125562f9a540.zip |
Tooltip: Replace blur with focusout to deal with inputs nested in tooltipped elements.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.tooltip.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index cb23e9a4d..6a41f8c4a 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -157,7 +157,7 @@ $.widget( "ui.tooltip", { this._bind( target, { mouseleave: "close", - blur: "close", + focusout: "close", keyup: function( event ) { if ( event.keyCode == $.ui.keyCode.ESCAPE ) { var fakeEvent = $.Event(event); @@ -193,7 +193,7 @@ $.widget( "ui.tooltip", { }); target.removeData( "tooltip-open" ); - target.unbind( "mouseleave.tooltip blur.tooltip keyup.tooltip" ); + target.unbind( "mouseleave.tooltip focusout.tooltip keyup.tooltip" ); this._trigger( "close", event, { tooltip: tooltip } ); }, |