mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-18 03:11:19 +02:00
Fix
This commit is contained in:
@@ -139,6 +139,7 @@ class Modal extends BaseComponent {
|
||||
}
|
||||
|
||||
dispose() {
|
||||
this._element.addEventListener(EVENT_HIDDEN, () => {
|
||||
EventHandler.off(window, EVENT_KEY)
|
||||
EventHandler.off(this._dialog, EVENT_KEY)
|
||||
|
||||
@@ -146,6 +147,9 @@ class Modal extends BaseComponent {
|
||||
this._focustrap.deactivate()
|
||||
|
||||
super.dispose()
|
||||
})
|
||||
|
||||
this._hideModal()
|
||||
}
|
||||
|
||||
handleUpdate() {
|
||||
|
Reference in New Issue
Block a user