Skip to content

Commit b8dfe77

Browse files
committed
Update cleared value docs example.
1 parent e67a30d commit b8dfe77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-renderer-demo/src/app/pages/renderer/cleared-value.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Grid from '@material-ui/core/Grid'
2-
import RawComponent from '@docs/raw-component';
2+
import CodeExample from '../../src/components/code-example'
33

44
import ListOfContents from '../../src/helpers/list-of-contents';
55

@@ -11,7 +11,7 @@ import ListOfContents from '../../src/helpers/list-of-contents';
1111
The value to send upon a submit if the field is empty. This wildcard value can be used to distinguish between an untouched field and a cleared one (it will be only used when field has initialValue). For example if you have a form that edits an entity and you would like to clear an attribute. Some APIs require the value to be set to null to register the change.
1212

1313

14-
<RawComponent source="cleared-value" />
14+
<CodeExample source="components/cleared-value" mode="preview" />
1515

1616
</Grid>
1717
<Grid item xs={false} md={2}>

0 commit comments

Comments
 (0)