Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs snippets: a few more minor tweaks #28225

Merged
merged 2 commits into from
Feb 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion site/docs/4.2/components/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ $form-validation-states: map-merge(
"invalid": (
"color": $form-feedback-invalid-color,
"icon": $form-feedback-icon-invalid
),
)
),
$form-validation-states
);
Expand Down
4 changes: 3 additions & 1 deletion site/docs/4.2/getting-started/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down