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
adc857f6
Commit
adc857f6
authored
4 years ago
by
Patrick H. Lauke
Committed by
XhmikosR
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Extra check for existence of any `aria-label`
before overwriting it...
parent
b0372bb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/src/tooltip.js
+2
-2
js/src/tooltip.js
with
2 additions
and
2 deletions
+2
-2
js/src/tooltip.js
+
2
-
2
View file @
adc857f6
...
@@ -584,8 +584,8 @@ class Tooltip extends BaseComponent {
...
@@ -584,8 +584,8 @@ class Tooltip extends BaseComponent {
if
(
title
||
originalTitleType
!==
'
string
'
)
{
if
(
title
||
originalTitleType
!==
'
string
'
)
{
this
.
_element
.
setAttribute
(
'
data-bs-original-title
'
,
title
||
''
)
this
.
_element
.
setAttribute
(
'
data-bs-original-title
'
,
title
||
''
)
if
(
!
this
.
_element
.
getAttribute
(
'
aria-label
'
)
&&
!
this
.
_element
.
textContent
)
{
if
(
this
.
_element
.
getAttribute
(
'
title
'
)
&&
!
this
.
_element
.
getAttribute
(
'
aria-label
'
)
&&
!
this
.
_element
.
textContent
)
{
this
.
_element
.
setAttribute
(
'
aria-label
'
,
this
.
_element
.
getAttribute
(
'
title
'
)
||
''
)
this
.
_element
.
setAttribute
(
'
aria-label
'
,
this
.
_element
.
getAttribute
(
'
title
'
))
}
}
this
.
_element
.
setAttribute
(
'
title
'
,
''
)
this
.
_element
.
setAttribute
(
'
title
'
,
''
)
...
...
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