Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
21de05c8
Commit
21de05c8
authored
10 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
don't show tooltips/popovers whose element isn't in the DOM; fixes
#13268
parent
b23ed1b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/tooltip.js
+3
-2
js/tooltip.js
with
3 additions
and
2 deletions
+3
-2
js/tooltip.js
+
3
-
2
View file @
21de05c8
...
...
@@ -145,8 +145,9 @@
if
(
this
.
hasContent
()
&&
this
.
enabled
)
{
this
.
$element
.
trigger
(
e
)
if
(
e
.
isDefaultPrevented
())
return
var
that
=
this
;
var
inDom
=
$
.
contains
(
document
.
documentElement
,
this
.
$element
[
0
])
if
(
e
.
isDefaultPrevented
()
||
!
inDom
)
return
var
that
=
this
var
$tip
=
this
.
tip
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment