1
0
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:
GeoSot
2021-05-25 18:30:38 +03:00
committed by GitHub
parent 69a9b87945
commit 544d9ac3cf
5 changed files with 9 additions and 15 deletions

View File

@@ -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