aboutsummaryrefslogtreecommitdiff
path: root/js/src/tooltip.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2023-03-29 20:49:30 +0300
committerGitHub <[email protected]>2023-03-29 13:49:30 -0400
commitae43f0c48bf7acede8a325b24197001fe2b2f416 (patch)
tree780ea3b362bff6b88eaed4f4387217264c3b3189 /js/src/tooltip.js
parent3aabfc70c38db03e77229a49f4f8c7ed58169cf7 (diff)
downloadbootstrap-ae43f0c48bf7acede8a325b24197001fe2b2f416.tar.xz
bootstrap-ae43f0c48bf7acede8a325b24197001fe2b2f416.zip
Tweak and re-organize ESLint config (#38369)
* Tweak and re-organize ESLint config * merge individual configs to the root config * enable more eslint-plugin-import rules * lint markdown files * Lint
Diffstat (limited to 'js/src/tooltip.js')
-rw-r--r--js/src/tooltip.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index ff1db974f..125281157 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -6,11 +6,11 @@
*/
import * as Popper from '@popperjs/core'
-import { defineJQueryPlugin, execute, findShadowRoot, getElement, getUID, isRTL, noop } from './util/index.js'
-import { DefaultAllowlist } from './util/sanitizer.js'
+import BaseComponent from './base-component.js'
import EventHandler from './dom/event-handler.js'
import Manipulator from './dom/manipulator.js'
-import BaseComponent from './base-component.js'
+import { defineJQueryPlugin, execute, findShadowRoot, getElement, getUID, isRTL, noop } from './util/index.js'
+import { DefaultAllowlist } from './util/sanitizer.js'
import TemplateFactory from './util/template-factory.js'
/**
@@ -197,7 +197,7 @@ class Tooltip extends BaseComponent {
return
}
- // todo v6 remove this OR make it optional
+ // TODO: v6 remove this or make it optional
this._disposePopper()
const tip = this._getTipElement()
@@ -302,13 +302,13 @@ class Tooltip extends BaseComponent {
_createTipElement(content) {
const tip = this._getTemplateFactory(content).toHtml()
- // todo: remove this check on v6
+ // TODO: remove this check in v6
if (!tip) {
return null
}
tip.classList.remove(CLASS_NAME_FADE, CLASS_NAME_SHOW)
- // todo: on v6 the following can be achieved with CSS only
+ // TODO: v6 the following can be achieved with CSS only
tip.classList.add(`bs-${this.constructor.NAME}-auto`)
const tipId = getUID(this.constructor.NAME).toString()