-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pickers] Fix regression on PickerValidDate
#14896
[pickers] Fix regression on PickerValidDate
#14896
Conversation
PickerValidDate
Deploy preview: https://deploy-preview-14896--material-ui-x.netlify.app/ |
@@ -112,6 +112,10 @@ const DateTimeRangePickerToolbarEnd = styled(DateTimePickerToolbar, { | |||
], | |||
}) as DateTimeRangePickerStartOrEndToolbarComponent; | |||
|
|||
type DateTimeRangePickerToolbarComponent = (<TDate extends PickerValidDate>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me
@@ -112,6 +112,10 @@ const DateTimeRangePickerToolbarEnd = styled(DateTimePickerToolbar, { | |||
], | |||
}) as DateTimeRangePickerStartOrEndToolbarComponent; | |||
|
|||
type DateTimeRangePickerToolbarComponent = (<TDate extends PickerValidDate>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. 👍
Other cases would result in the same output if the as
casting is removed. 🙈
I.e. DatePickerToolbar
.
Ideally—it would be nice to automate the avoidance of such output. 😆
A dirty solution would be to look automatically for |
Yeah, my only idea as well. 🤔 |
Fix #14895