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

Uncaught TypeError: dateInputFields.flatpickr is not a function #93

Open
myii opened this issue Jul 30, 2020 · 3 comments
Open

Uncaught TypeError: dateInputFields.flatpickr is not a function #93

myii opened this issue Jul 30, 2020 · 3 comments

Comments

@myii
Copy link

myii commented Jul 30, 2020

Noticed that the date picker stops working in this situation:

  1. Fill out the survey so that all of the data is valid except for a required date field (date of birth is an excellent example).
  2. Hit Submit and the missing date validation error will be highlighted -- however, the picker no longer works.
  3. The user can now enter a date manually provided they use the correct format.

The developer console shows the error that is the title of this issue:

Uncaught TypeError: dateInputFields.flatpickr is not a function
@Pierre-Sassoulas
Copy link
Owner

Thank you for the super clear report ! If you make a fix do not hesitate to create a merge request :)

@myii
Copy link
Author

myii commented Jul 30, 2020

@Pierre-Sassoulas Thanks for the rapid response! I don't have any ideas about this just yet but I may have something else useful when modifying survey responses in the admin: it's very easy to introduce invalid entries if any of the answers are edited. I've written some basic validation that can at least ensure the data type is valid and can even compare with the valid choices for those types of fields. Would you be interested in that?

@Pierre-Sassoulas
Copy link
Owner

Yeap, sounds nice, I remember there is a LOT of assumptions about the formatting of multiple choice values. I'd definitely merge that.

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

No branches or pull requests

2 participants