Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoSot <geo.sotis@gmail.com>2021-05-18 09:26:22 +0300
committerGitHub <noreply@github.com>2021-05-18 09:26:22 +0300
commit2757fbe28e1039fb629f4c289aacf4f1cc6009c2 (patch)
tree7a4a26a8caf43b256a6d217f76170f91a7b80162 /js/src/modal.js
parent153cf3a235ec7fd86c09cbe5f31d7eebd0aab661 (diff)
Reset inside a Dialog does not work if `data-dismiss="modal"` is set (#33928)
Diffstat (limited to 'js/src/modal.js')
-rw-r--r--js/src/modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index d4436bf4fe..2dc7e75d98 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -145,7 +145,7 @@ class Modal extends BaseComponent {
}
hide(event) {
- if (event) {
+ if (event && ['A', 'AREA'].includes(event.target.tagName)) {
event.preventDefault()
}