diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-06 07:58:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-06 07:58:36 +0000 |
commit | 548342184e2173d6f39aba2462196ff8b397db8f (patch) | |
tree | 995bd2844c5f4e453bdd21d27ff0417af1c910c5 /site/content/docs/5.3/getting-started/javascript.md | |
parent | Adding upstream version 5.3.0+dfsg. (diff) | |
download | bootstrap-html-548342184e2173d6f39aba2462196ff8b397db8f.tar.xz bootstrap-html-548342184e2173d6f39aba2462196ff8b397db8f.zip |
Adding upstream version 5.3.1+dfsg.upstream/5.3.1+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'site/content/docs/5.3/getting-started/javascript.md')
-rw-r--r-- | site/content/docs/5.3/getting-started/javascript.md | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/site/content/docs/5.3/getting-started/javascript.md b/site/content/docs/5.3/getting-started/javascript.md index 8efb2fb..80c222f 100644 --- a/site/content/docs/5.3/getting-started/javascript.md +++ b/site/content/docs/5.3/getting-started/javascript.md @@ -118,9 +118,7 @@ All infinitive events provide [`preventDefault()`](https://developer.mozilla.org const myModal = document.querySelector('#myModal') myModal.addEventListener('show.bs.modal', event => { - if (!data) { - return event.preventDefault() // stops modal from being shown - } + return event.preventDefault() // stops modal from being shown }) ``` |