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

Commit

Permalink
Update src/core.js
Browse files Browse the repository at this point in the history
Prevent hiding qTip on unfocus (document click) when it is disabled
  • Loading branch information
rafalbigaj committed Jan 24, 2013
1 parent 386da94 commit d6d5523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ function QTip(target, options, id, attr)
isAncestor = elem.parents(selector).filter(tooltip[0]).length > 0;

if(elem[0] !== target[0] && elem[0] !== tooltip[0] && !isAncestor &&
!target.has(elem[0]).length && !elem.attr('disabled')
!target.has(elem[0]).length && enabled
) {
self.hide(event);
}
Expand Down

0 comments on commit d6d5523

Please sign in to comment.