matheo / angular

Open Source Angular Libraries: MatDataSource, MatDatepicker
http://matheo.co/demos/
MIT License
60 stars 15 forks source link

Angular 14 doesn't support. #65

Open bhooshan0x07 opened 1 year ago

bhooshan0x07 commented 1 year ago

Hi I am trying to use this date and time picker in Angular 14 but it seems not [working,]

image

exitlol commented 1 year ago

I am joining for the request to fix this and support angular 14.

edit.:

bhooshan0x07 do you happen to have anything dateFormat related set in any of the providers array?

    // {
    //   provide: MAT_DATE_FORMATS,
    //   useValue: {
    //     parse: {
    //       dateInput: 'L',
    //     },
    //     display: {
    //       dateInput: 'L',
    //       monthYearLabel: 'MMM.YYYY',
    //       dateA11yLabel: 'L',
    //       monthYearA11yLabel: 'MMMM.YYYY',
    //     },
    //   },
    // },

This is what i've commented out, and it solved that overlaying issue for me. I still need to figure it out what caused it. But reverting to the defaults sometimes fixes the issue.

Note.: I have CustomDateAdapter for monday to be the 1st day of the week since this is our default in Hungary, and also localization of the days.

image

aldairguarupe commented 1 year ago

@matheo are there plans to support angular 15?