Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onClose event has wrong values inside when allowInput is set to true #2089

Closed
alex-w0 opened this issue Jan 22, 2020 · 1 comment · Fixed by #2541
Closed

onClose event has wrong values inside when allowInput is set to true #2089

alex-w0 opened this issue Jan 22, 2020 · 1 comment · Fixed by #2541

Comments

@alex-w0
Copy link

alex-w0 commented Jan 22, 2020

Steps to reproduce:

  1. Pick a correct date e.g. 2020-01-22 - 2020-01-28
  2. Delete the entry with the delete button and write the word 'test' inside
  3. The onClose event will now be fired and as you can see the first parameter selectedDates doesn't contain an empty array (because the input is not valid as date), instead it keeps the old start date.

At the moment I have to parse the second parameter to a date object if I wan't to get the real input values.

https://jsfiddle.net/Lhca73v5/

@CatchABus
Copy link
Contributor

I have also got this issue in latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants