Skip to content

Commit 03f8451

Browse files
committed
remove useless default values
1 parent 87c40ab commit 03f8451

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/SelectInput.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const CreateAuthor = () => {
216216
},
217217
}}
218218
>
219-
<SimpleForm defaultValues={{ name: filter }}>
219+
<SimpleForm>
220220
<TextInput source="name" helperText={false} />
221221
<TextInput source="language" helperText={false} autoFocus />
222222
</SimpleForm>
@@ -730,7 +730,7 @@ const CreateCategory = () => {
730730
},
731731
}}
732732
>
733-
<SimpleForm defaultValues={{ title: filter }}>
733+
<SimpleForm>
734734
<TextInput source="name" helperText={false} autoFocus/>
735735
</SimpleForm>
736736
</CreateBase>

packages/ra-ui-materialui/src/input/SelectInput.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ const CreateAuthor = () => {
643643
},
644644
}}
645645
>
646-
<SimpleForm defaultValues={{ first_name: filter }}>
646+
<SimpleForm>
647647
<TextInput
648648
source="first_name"
649649
helperText={false}

0 commit comments

Comments
 (0)