]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Don't hide modal when keyboard is set to false in modal's configuration (#32179)
authorRohit Sharma <rohit2sharma95@gmail.com>
Fri, 20 Nov 2020 13:36:24 +0000 (19:06 +0530)
committerGitHub <noreply@github.com>
Fri, 20 Nov 2020 13:36:24 +0000 (15:36 +0200)
commit0839cbf04dd9b94dc2f9806751660d921beb72e9
treefc715f4af1107593013ae64808994a66a698ef56
parent2630b05eb34c669d1771200b572efb09eb16c9f5
Don't hide modal when keyboard is set to false in modal's configuration (#32179)

* Don't hide modal when config.keyboard is false

* Update unit test

- Modal should not be closed when pressing esc key if keyboard = false
  and backdrop is 'static'

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
js/src/modal.js
js/tests/unit/modal.spec.js