Skip to content

Commit

Permalink
fix grid demo picked control regression
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeVitik committed Oct 15, 2021
1 parent 25e7568 commit 633d3a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ const DetailContent = ({ row, ...rest }) => {
/>
<LocalizationProvider dateAdapter={AdapterMoment}>
<DatePicker
renderInput={props => <TextField {...props} margin="normal" label="Birth Date" />}
renderInput={props => <TextField margin="normal" {...props} />}
label="Birth Date"
value={row.BirthDate}
onChange={value => processValueChange({
target: { name: 'BirthDate', value: value.toDate() },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ const Popup = ({
/>
<LocalizationProvider dateAdapter={AdapterMoment}>
<DatePicker
renderInput={props => <TextField margin="normal" label="Birth Date" {...props} />}
renderInput={props => <TextField margin="normal" {...props} />}
label="Birth Date"
value={row.BirthDate}
onChange={value => onChange({
target: { name: 'BirthDate', value },
Expand Down

0 comments on commit 633d3a6

Please sign in to comment.