Issue with changes to calendar control - new prop "keepInvalid"

UI Components for Vue
Post Reply
inquisitive
Posts: 1
Joined: 13 Aug 2021, 19:11

01 Oct 2021, 00:11

The calendar control recently changed how it handles invalid dates typed into the input field. Originally the invalid text stayed in the input field and on blur was emitted. I was able to capture string input and put out an error message indicating the problem. The new prop keepInvalid allows the invalid text to be blanked out (when false - default) or leaves the invalid text (when true). This does work. However when keepInvalid is set tp true, the formatting of the display is now overridden. I am formatting the date to YYYY-MM-DD. It is however now displayed as standard (long format) JavaScript date. Is there a work around for this?

Thanks

Richard

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests