Skip to content

Commit 724170d

Browse files
devversiontinayuangao
authored andcommitted
demo(slide-toggle): fix slide-toggle required demo (#3793)
Fixes the slide-toggle required demo, where the component will be compared with the native required state. Basically in the demo, the form should be validated native and should show the browsers popup if the slide-toggle is required.
1 parent a225b77 commit 724170d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/demo-app/slide-toggle/slide-toggle-demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<p>Example where the slide toggle is required inside of a form.</p>
1616

17-
<form #form="ngForm" (ngSubmit)="onFormSubmit()">
17+
<form #form="ngForm" (ngSubmit)="onFormSubmit()" ngNativeValidate>
1818

1919
<md-slide-toggle name="slideToggle" required ngModel>
2020
Slide Toggle

0 commit comments

Comments
 (0)