You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/Toggling-a-field.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,8 @@ function ToggleForm() {
18
18
onSubmit={(ev) => {
19
19
ev.preventDefault();
20
20
console.log("submit", form.values);
21
-
}}>
21
+
}}
22
+
>
22
23
{/* Use the setNullOnUncheck prop. The value prop contains the value that is set when the box gets checked again, you can omit it to use the default value */}
{/* Use the hideWhenNull prop to hide the input when its field is null */}
@@ -42,7 +43,8 @@ function ToggleForm() {
42
43
onSubmit={(ev) => {
43
44
ev.preventDefault();
44
45
console.log("submit", form.values);
45
-
}}>
46
+
}}
47
+
>
46
48
<FormInputform={form}name="name"type="text" />
47
49
48
50
{/* Use the setNullOnUncheck prop. The value prop contains the value that is set when the box gets checked again, you can omit it to use the default value */}
0 commit comments