aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorRohit Sharma <[email protected]>2021-01-14 01:29:47 +0530
committerGitHub <[email protected]>2021-01-13 21:59:47 +0200
commite34481b6eb5c7b9db35911f428cb96af6947741e (patch)
treee3675a4b136a1202e3211e4f04e47991e4af58a2 /js/src
parentd21fb9b6276cf023f99286c2e39498990ff69895 (diff)
downloadbootstrap-e34481b6eb5c7b9db35911f428cb96af6947741e.tar.xz
bootstrap-e34481b6eb5c7b9db35911f428cb96af6947741e.zip
Fix toggling modal when clicking on `data-bs-toggle="modal"` (#32691)
Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'js/src')
-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 87c22943a..fe1b5a4c6 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -590,7 +590,7 @@ EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (
data = new Modal(target, config)
}
- data.show(this)
+ data.toggle(this)
})
/**