We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
offcanvas
keydown
modal
1 parent 9f5dca0 commit 7432ebcCopy full SHA for 7432ebc
js/src/modal.js
@@ -208,7 +208,6 @@ class Modal extends BaseComponent {
208
}
209
210
if (this._config.keyboard) {
211
- event.preventDefault()
212
this.hide()
213
return
214
js/src/offcanvas.js
@@ -198,12 +198,12 @@ class Offcanvas extends BaseComponent {
198
199
200
201
- if (!this._config.keyboard) {
202
- EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED)
+ if (this._config.keyboard) {
+ this.hide()
203
204
205
206
- this.hide()
+ EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED)
207
})
0 commit comments