react-multi-date-picker icon indicating copy to clipboard operation
react-multi-date-picker copied to clipboard

DateObject.isValid not working in onChange when manually entering date

Open afrievalt opened this issue 3 years ago • 0 comments

Steps to reproduce: Click into date field Select: 12/10/2022 In the input field, change to 12/55/2022

Expect onChange

  • date.isValid = false
  • no date selected on calendar

Actual onChange

  • date.isValid = true
  • date.format() 12/24/2023
  • date show on calendar: 12/24/2033

code sample provided on request sorry if this is duplicated (i did search) or expected behavior.

afrievalt avatar Aug 23 '22 13:08 afrievalt