Skip to content

Commit

Permalink
[docs] Removed focused prop from demo (#12092)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelengelen authored Feb 16, 2024
1 parent d28d48a commit 7817838
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions docs/data/data-grid/custom-columns/EditingWithDatePickers.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ const dateColumnType = {
InputComponentProps: { showTime: false },
})),
valueFormatter: (value) => {
if (typeof value === 'string') {
return value;
}
if (value) {
return dateAdapter.format(value, 'keyboardDate');
}
Expand All @@ -53,7 +50,7 @@ const GridEditDateInput = styled(InputBase)({
});

function WrappedGridEditDateInput(props) {
const { InputProps, ...other } = props;
const { InputProps, focused, ...other } = props;
return <GridEditDateInput fullWidth {...InputProps} {...other} />;
}

Expand Down Expand Up @@ -123,9 +120,6 @@ const dateTimeColumnType = {
InputComponentProps: { showTime: true },
})),
valueFormatter: (value) => {
if (typeof value === 'string') {
return value;
}
if (value) {
return dateAdapter.format(value, 'keyboardDateTime');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ const dateColumnType: GridColTypeDef<Date, string> = {
InputComponentProps: { showTime: false },
})),
valueFormatter: (value) => {
if (typeof value === 'string') {
return value;
}
if (value) {
return dateAdapter.format(value, 'keyboardDate');
}
Expand All @@ -59,7 +56,7 @@ const GridEditDateInput = styled(InputBase)({
});

function WrappedGridEditDateInput(props: TextFieldProps) {
const { InputProps, ...other } = props;
const { InputProps, focused, ...other } = props;
return (
<GridEditDateInput fullWidth {...InputProps} {...(other as InputBaseProps)} />
);
Expand Down Expand Up @@ -138,9 +135,6 @@ const dateTimeColumnType: GridColTypeDef<Date, string> = {
InputComponentProps: { showTime: true },
})),
valueFormatter: (value) => {
if (typeof value === 'string') {
return value;
}
if (value) {
return dateAdapter.format(value, 'keyboardDateTime');
}
Expand Down

0 comments on commit 7817838

Please sign in to comment.