diff options
| author | Johann-S <[email protected]> | 2020-11-20 11:13:11 +0100 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-11-29 20:58:26 +0200 |
| commit | 9eb9d02084dc914e614e8844e3ffdee4d0a25126 (patch) | |
| tree | 4c6722f81a9336921b85879aff41bc748ff12a2b /js/src/dropdown.js | |
| parent | 51a208f119522f8618801a6e61ff8d47cf89d4cf (diff) | |
| download | bootstrap-9eb9d02084dc914e614e8844e3ffdee4d0a25126.tar.xz bootstrap-9eb9d02084dc914e614e8844e3ffdee4d0a25126.zip | |
add dispose in base component
Diffstat (limited to 'js/src/dropdown.js')
| -rw-r--r-- | js/src/dropdown.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js index 16d35b911..3641d9f9d 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -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() |
