diff options
| author | Nathan Walters <[email protected]> | 2022-07-05 22:15:50 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-07-06 07:15:50 +0200 |
| commit | 3f324eed02f24f817e7d75bc7d37c210644a06ee (patch) | |
| tree | 838293607d651236c90bbb1a33f2566e01321b23 /js/src/tooltip.js | |
| parent | 7d0b224df49f75f9860ea1c3a6b54022a359c56f (diff) | |
| download | bootstrap-3f324eed02f24f817e7d75bc7d37c210644a06ee.tar.xz bootstrap-3f324eed02f24f817e7d75bc7d37c210644a06ee.zip | |
Handle non-empty whitespace `textContent` in Tooltip trigger (#36588)
Diffstat (limited to 'js/src/tooltip.js')
| -rw-r--r-- | js/src/tooltip.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 650bf2b09..f8d97f240 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) } |
