mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
Update modal.js
This commit is contained in:
+2
-3
@@ -142,9 +142,8 @@ class Modal extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dispose() {
|
dispose() {
|
||||||
for (const htmlElement of [window, this._dialog]) {
|
EventHandler.off(window, EVENT_KEY)
|
||||||
EventHandler.off(htmlElement, EVENT_KEY)
|
EventHandler.off(this._dialog, EVENT_KEY)
|
||||||
}
|
|
||||||
|
|
||||||
this._backdrop.dispose()
|
this._backdrop.dispose()
|
||||||
this._focustrap.deactivate()
|
this._focustrap.deactivate()
|
||||||
|
|||||||
Reference in New Issue
Block a user