2
0
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:
XhmikosR
2022-02-07 10:57:26 +02:00
parent cddd7c34de
commit 5eb4429710
+2 -3
View File
@@ -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()