diff options
| author | XhmikosR <[email protected]> | 2020-04-09 20:56:43 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-09 20:56:43 +0300 |
| commit | 9a5033d41350f83d3b4814648934618ab4648e27 (patch) | |
| tree | 4f5af04e3c591fc697334f83c56d1c1d02a9dfcb /js/src/tooltip.js | |
| parent | 7126741ffb92469752aef4136b084cad40394a6a (diff) | |
| download | bootstrap-9a5033d41350f83d3b4814648934618ab4648e27.tar.xz bootstrap-9a5033d41350f83d3b4814648934618ab4648e27.zip | |
Pass multiple classes to `classList.add` / `classList.remove` (#30537)
This is supported by our currently supported browsers.
Diffstat (limited to 'js/src/tooltip.js')
| -rw-r--r-- | js/src/tooltip.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 9a1dff3d6..3f40b3da1 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -400,8 +400,7 @@ class Tooltip { setContent() { const tip = this.getTipElement() this.setElementContent(SelectorEngine.findOne(SELECTOR_TOOLTIP_INNER, tip), this.getTitle()) - tip.classList.remove(CLASS_NAME_FADE) - tip.classList.remove(CLASS_NAME_SHOW) + tip.classList.remove(CLASS_NAME_FADE, CLASS_NAME_SHOW) } setElementContent(element, content) { |
