1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-18 03:11:19 +02:00

Merge branch 'main' into patrickhlauke-issue37428

This commit is contained in:
Patrick H. Lauke
2023-02-14 17:06:25 +00:00
committed by GitHub
33 changed files with 145 additions and 170 deletions

View File

@@ -208,7 +208,6 @@ class Modal extends BaseComponent {
}
if (this._config.keyboard) {
event.preventDefault()
this.hide()
return
}

View File

@@ -198,12 +198,12 @@ class Offcanvas extends BaseComponent {
return
}
if (!this._config.keyboard) {
EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED)
if (this._config.keyboard) {
this.hide()
return
}
this.hide()
EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED)
})
}