1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-13 09:04:14 +02: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

View File

@@ -145,7 +145,7 @@ class Modal extends BaseComponent {
}
hide(event) {
if (event) {
if (event && ['A', 'AREA'].includes(event.target.tagName)) {
event.preventDefault()
}