Skip to content

Commit 3aa0770

Browse files
authored
docs snippets: a few more minor tweaks (#28225)
* Remove extra comma. * Use curly braces in snippet.
1 parent adf16da commit 3aa0770

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

site/docs/4.2/components/forms.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ $form-validation-states: map-merge(
11251125
"invalid": (
11261126
"color": $form-feedback-invalid-color,
11271127
"icon": $form-feedback-icon-invalid
1128-
),
1128+
)
11291129
),
11301130
$form-validation-states
11311131
);

site/docs/4.2/getting-started/javascript.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ All infinitive events provide [`preventDefault()`](https://developer.mozilla.org
5050

5151
{% highlight js %}
5252
$('#myModal').on('show.bs.modal', function (e) {
53-
if (!data) return e.preventDefault() // stops modal from being shown
53+
if (!data) {
54+
return e.preventDefault() // stops modal from being shown
55+
}
5456
})
5557
{% endhighlight %}
5658

0 commit comments

Comments
 (0)