Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
Diffstat (limited to 'js/src')
-rw-r--r--js/src/tooltip.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index 650bf2b092..f8d97f2408 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -518,7 +518,7 @@ class Tooltip extends BaseComponent {
return
}
- if (!this._element.getAttribute('aria-label') && !this._element.textContent) {
+ if (!this._element.getAttribute('aria-label') && !this._element.textContent.trim()) {
this._element.setAttribute('aria-label', title)
}