-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
@angular/material 19: Datepicker integrated with Timepicker should not reset the time #30181
Comments
The problem is that the demo is using only one variable to showcase the Date and Time.
If you simply use two variables, one for the date and another one for the time, the values won't override each other.
And then you can bind to the different variables using standard two-way binding:
|
Having separate variables defeats the purpose of the integrated example. One would have to merge the two with extra logic. |
That’s correct, but the two pickers are separate anyway. In my use case with DayJS, I implemented a new function that assigns the time values to the date values and returns a new date (ISO string) object:
|
Which @angular/* package(s) are the source of the bug?
@angular/material
Is this a regression?
Yes
Description
Can be reproduced in the v19 example: https://material.angular.io/components/timepicker/examples#timepicker-datepicker-integration
Steps:
Expected Result:
Time portion of the value should not change
Actual Result:
Time portion resets to 00:00
Please provide a link to a minimal reproduction of the bug
https://material.angular.io/components/timepicker/examples#timepicker-datepicker-integration
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: