mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-18 03:11:19 +02:00
add dispose in base component
This commit is contained in:
@@ -235,9 +235,8 @@ class Dropdown extends BaseComponent {
|
||||
}
|
||||
|
||||
dispose() {
|
||||
Data.removeData(this._element, DATA_KEY)
|
||||
super.dispose()
|
||||
EventHandler.off(this._element, EVENT_KEY)
|
||||
this._element = null
|
||||
this._menu = null
|
||||
if (this._popper) {
|
||||
this._popper.destroy()
|
||||
|
Reference in New Issue
Block a user