mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
Change element.parentNode.removeChild(element) to element.remove() (#34071)
This commit is contained in:
+2
-2
@@ -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