0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-30 22:52:24 +01: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:
GeoSot 2021-11-28 02:46:28 +02:00 committed by XhmikosR
parent 3baeb0a5c1
commit 724663b3cd

View File

@ -16,7 +16,6 @@ import {
typeCheckConfig
} from './util/index'
import { DefaultAllowlist } from './util/sanitizer'
import Data from './dom/data'
import EventHandler from './dom/event-handler'
import Manipulator from './dom/manipulator'
import BaseComponent from './base-component'
@ -231,7 +230,6 @@ class Tooltip extends BaseComponent {
this._element.setAttribute('aria-describedby', tip.getAttribute('id'))
const { container } = this._config
Data.set(tip, this.constructor.DATA_KEY, this)
if (!this._element.ownerDocument.documentElement.contains(this.tip)) {
container.append(tip)