summaryrefslogtreecommitdiffstats
path: root/site/content/docs/5.3/getting-started/javascript.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-08-06 07:58:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-08-06 07:58:36 +0000
commit548342184e2173d6f39aba2462196ff8b397db8f (patch)
tree995bd2844c5f4e453bdd21d27ff0417af1c910c5 /site/content/docs/5.3/getting-started/javascript.md
parentAdding upstream version 5.3.0+dfsg. (diff)
downloadbootstrap-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.md4
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
})
```