mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-08 06:50:59 +00:00
Merge branch 'v4-dev' into v4-docs-button-group-a11y-patch1
This commit is contained in:
commit
61536dd076
1 changed files with 1 additions and 0 deletions
|
|
@ -289,6 +289,7 @@ const Modal = (($) => {
|
|||
if (this._isShown && this._config.keyboard) {
|
||||
$(this._element).on(Event.KEYDOWN_DISMISS, (event) => {
|
||||
if (event.which === ESCAPE_KEYCODE) {
|
||||
event.preventDefault()
|
||||
this.hide()
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue