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:
@@ -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)
|
||||
|
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user