diff options
| author | Rohit Sharma <[email protected]> | 2021-01-14 01:29:47 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-13 21:59:47 +0200 |
| commit | e34481b6eb5c7b9db35911f428cb96af6947741e (patch) | |
| tree | e3675a4b136a1202e3211e4f04e47991e4af58a2 /js/src | |
| parent | d21fb9b6276cf023f99286c2e39498990ff69895 (diff) | |
| download | bootstrap-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.js | 2 |
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) }) /** |
