diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-04-30 13:31:14 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-04-30 13:31:14 -0400 |
commit | dbf31da79f30740136c2cb3b20269a7eabf9af67 (patch) | |
tree | 0727b527e5317c48d28d18a8f6e0d211f76eed6c /ui/jquery.ui.tooltip.js | |
parent | b8b0c528301ab2bfc49e36143a3c4f6451e58ccd (diff) | |
download | jquery-ui-dbf31da79f30740136c2cb3b20269a7eabf9af67.tar.gz jquery-ui-dbf31da79f30740136c2cb3b20269a7eabf9af67.zip |
Tooltip: Only check if the element is active if the event that is causing the tooltip to close is not focusout.
Diffstat (limited to 'ui/jquery.ui.tooltip.js')
-rw-r--r-- | ui/jquery.ui.tooltip.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index 424eca7af..8ddcbb700 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -179,7 +179,10 @@ $.widget( "ui.tooltip", { // don't close if the element has focus // this prevents the tooltip from closing if you hover while focused - if ( !force && this.document[0].activeElement === target[0] ) { + // we have to check the event type because tabbing out of the document + // may leave the element as the activeElement + if ( !force && event && event.type !== "focusout" && + this.document[0].activeElement === target[0] ) { return; } |