mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-27 05:49:07 +02:00
Change element.parentNode.removeChild(element)
to element.remove()
(#34071)
This commit is contained in:
@@ -98,11 +98,11 @@ class Popover extends Tooltip {
|
||||
this.tip = super.getTipElement()
|
||||
|
||||
if (!this.getTitle()) {
|
||||
this.tip.removeChild(SelectorEngine.findOne(SELECTOR_TITLE, this.tip))
|
||||
SelectorEngine.findOne(SELECTOR_TITLE, this.tip).remove()
|
||||
}
|
||||
|
||||
if (!this._getContent()) {
|
||||
this.tip.removeChild(SelectorEngine.findOne(SELECTOR_CONTENT, this.tip))
|
||||
SelectorEngine.findOne(SELECTOR_CONTENT, this.tip).remove()
|
||||
}
|
||||
|
||||
return this.tip
|
||||
|
Reference in New Issue
Block a user