1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-07 22:26:57 +02:00

Allow use of dispose/hide methods on Tooltip & Popover from jQueryInterface, when component does not exists. (#33371)

This commit is contained in:
GeoSot
2021-05-20 16:16:55 +03:00
committed by GitHub
parent de0b797ab2
commit 9e4f87ae8f
4 changed files with 0 additions and 38 deletions

View File

@@ -149,10 +149,6 @@ class Popover extends Tooltip {
let data = Data.get(this, DATA_KEY)
const _config = typeof config === 'object' ? config : null
if (!data && /dispose|hide/.test(config)) {
return
}
if (!data) {
data = new Popover(this, _config)
Data.set(this, DATA_KEY, data)

View File

@@ -725,10 +725,6 @@ class Tooltip extends BaseComponent {
let data = Data.get(this, DATA_KEY)
const _config = typeof config === 'object' && config
if (!data && /dispose|hide/.test(config)) {
return
}
if (!data) {
data = new Tooltip(this, _config)
}