Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
hide.fixed detection algorithm now uses event.target as fallback if e…
Browse files Browse the repository at this point in the history
…ent.relatedTarget is null. This fixes issues with dropdowns contained within tooltips causing themto close even if hide.fixed is defined
  • Loading branch information
Craga89 committed Nov 23, 2010
1 parent 6c1f10b commit 2386e4d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/jquery.qtip.css
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Thu Nov 18 23:52:21 2010 +0000
* Date: Tue Nov 23 01:06:44 2010 +0000
*/

.ui-tooltip-accessible{
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Thu Nov 18 23:52:21 2010 +0000
* Date: Tue Nov 23 01:06:44 2010 +0000
*/

"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
Expand Down Expand Up @@ -470,7 +470,7 @@ function QTip(target, options, id)
if(targets.tooltip.hasClass('ui-state-disabled')) { return FALSE; }

// Check if new target was actually the tooltip element
var ontoTooltip = $(event.relatedTarget).parents(selector)[0] == targets.tooltip[0];
var ontoTooltip = $(event.relatedTarget || event.target).parents(selector)[0] == targets.tooltip[0];

// Clear timers and stop animation queue
clearTimeout(self.timers.show);
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2386e4d

Please sign in to comment.