2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Reset inside a Dialog does not work if data-dismiss="modal" is set (#33928)

This commit is contained in:
GeoSot
2021-05-18 09:26:22 +03:00
committed by GitHub
parent 153cf3a235
commit 2757fbe28e
2 changed files with 55 additions and 1 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ class Modal extends BaseComponent {
}
hide(event) {
if (event) {
if (event && ['A', 'AREA'].includes(event.target.tagName)) {
event.preventDefault()
}