ng-matero / extensions

Angular Material Extensions Library.
https://ng-matero.github.io/extensions/
MIT License
393 stars 48 forks source link

MtxDateTimePicker does not update when type is changed. #185

Open pedroestabruxelles opened 1 year ago

pedroestabruxelles commented 1 year ago

Steps to reproduce from the example page:

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

HiteshWork13 commented 1 year ago

@pedroestabruxelles which version of angular material you are using ?

pedroestabruxelles commented 1 year ago

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

pranxy commented 1 year ago

@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 commented 1 year ago

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