mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-13 09:04:14 +02:00
Tooltip: Remove Data.set
usage for dynamically created tip
This is not used any further, so we were just setting it.
This commit is contained in:
@@ -16,7 +16,6 @@ import {
|
|||||||
typeCheckConfig
|
typeCheckConfig
|
||||||
} from './util/index'
|
} from './util/index'
|
||||||
import { DefaultAllowlist } from './util/sanitizer'
|
import { DefaultAllowlist } from './util/sanitizer'
|
||||||
import Data from './dom/data'
|
|
||||||
import EventHandler from './dom/event-handler'
|
import EventHandler from './dom/event-handler'
|
||||||
import Manipulator from './dom/manipulator'
|
import Manipulator from './dom/manipulator'
|
||||||
import BaseComponent from './base-component'
|
import BaseComponent from './base-component'
|
||||||
@@ -231,7 +230,6 @@ class Tooltip extends BaseComponent {
|
|||||||
this._element.setAttribute('aria-describedby', tip.getAttribute('id'))
|
this._element.setAttribute('aria-describedby', tip.getAttribute('id'))
|
||||||
|
|
||||||
const { container } = this._config
|
const { container } = this._config
|
||||||
Data.set(tip, this.constructor.DATA_KEY, this)
|
|
||||||
|
|
||||||
if (!this._element.ownerDocument.documentElement.contains(this.tip)) {
|
if (!this._element.ownerDocument.documentElement.contains(this.tip)) {
|
||||||
container.append(tip)
|
container.append(tip)
|
||||||
|
Reference in New Issue
Block a user