duetds/date-picker

e.getDate is not a function

mununki opened this issue · 1 comments

Describe the bug
Inputting the date directly into the input.duet-date__input causes the unhandled error exception.

Unhandled Runtime Error
TypeError: e.getDate is not a function

To Reproduce
Steps to reproduce the behavior:

  1. Click the input to focus in order to input the date directly
  2. Hit the backspace key twice to remove the date

Expected behavior
The date string should be processed to be parsed in js Date.

Desktop (please complete the following information):

  • OS: macOS
  • Browser: chrome
  • Version: "@duetds/date-picker": "^1.4.0"

Did you ever found a fix?