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