diff options
-rw-r--r-- | site/docs/4.2/components/forms.md | 2 | ||||
-rw-r--r-- | site/docs/4.2/getting-started/javascript.md | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/site/docs/4.2/components/forms.md b/site/docs/4.2/components/forms.md index 94a868fad4..e655e21589 100644 --- a/site/docs/4.2/components/forms.md +++ b/site/docs/4.2/components/forms.md @@ -1125,7 +1125,7 @@ $form-validation-states: map-merge( "invalid": ( "color": $form-feedback-invalid-color, "icon": $form-feedback-icon-invalid - ), + ) ), $form-validation-states ); diff --git a/site/docs/4.2/getting-started/javascript.md b/site/docs/4.2/getting-started/javascript.md index 536a65d285..fc1f2c5a77 100644 --- a/site/docs/4.2/getting-started/javascript.md +++ b/site/docs/4.2/getting-started/javascript.md @@ -50,7 +50,9 @@ All infinitive events provide [`preventDefault()`](https://developer.mozilla.org {% highlight js %} $('#myModal').on('show.bs.modal', function (e) { - if (!data) return e.preventDefault() // stops modal from being shown + if (!data) { + return e.preventDefault() // stops modal from being shown + } }) {% endhighlight %} |