diff options
author | GeoSot <geo.sotis@gmail.com> | 2021-05-18 09:26:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-18 09:26:22 +0300 |
commit | 2757fbe28e1039fb629f4c289aacf4f1cc6009c2 (patch) | |
tree | 7a4a26a8caf43b256a6d217f76170f91a7b80162 /js/src/modal.js | |
parent | 153cf3a235ec7fd86c09cbe5f31d7eebd0aab661 (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.js | 2 |
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() } |