Skip to content
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

MtxDateTimePicker does not update when type is changed. #185

Open
pedroestabruxelles opened this issue Feb 27, 2023 · 4 comments
Open

MtxDateTimePicker does not update when type is changed. #185

pedroestabruxelles opened this issue Feb 27, 2023 · 4 comments
Labels
area: datetimepicker Issues about datetimepicker discussion Discussion for the project

Comments

@pedroestabruxelles
Copy link

Steps to reproduce from the example page:

  • Pick a date/time
  • Change type to Date

It gets stuck to the datetime type (2023-02-15 15:58), it should switch the view to date only (2023-02-15).

@nzbin nzbin added wontfix This will not be worked on area: datetimepicker Issues about datetimepicker labels Feb 28, 2023
@HiteshWork13
Copy link

@pedroestabruxelles which version of angular material you are using ?

@pedroestabruxelles
Copy link
Author

14, but you can see from the documentation page that the same issue persists on the latest version.

@nzbin nzbin closed this as completed Mar 7, 2023
@pranxy
Copy link

pranxy commented Mar 7, 2023

@nzbin Some sort of feedback would be appreciated since this an actual bug and I don't understand why would not be fixed?

@wwaters-ms
Copy link

Yeah, I'm seeing the same issue with Angular 15. Setting type="date" or type="datetime" works as expected, but setting [type]="type" displays datetime regardless of the value type has.

I basically had to write two separate components with the type hard coded and swap between them

@nzbin nzbin reopened this Mar 16, 2023
@nzbin nzbin added discussion Discussion for the project and removed wontfix This will not be worked on labels Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: datetimepicker Issues about datetimepicker discussion Discussion for the project
Projects
None yet
Development

No branches or pull requests

5 participants