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

Datepicker sometimes (?) crashes if DOB is negative or nonexistent #43

Open
cecilia-donnelly opened this issue Aug 4, 2016 · 1 comment

Comments

@cecilia-donnelly
Copy link

I don't have a consistent reproduction recipe for this yet, but a couple times when editing a client that has either no date of birth or a future date of birth (an artifact of old test data that had some people born in the future), the datepicker widget has frozen my browser window and, in one case, completely crashed Firefox. The widget froze similarly in Chrome, but refreshing the page made it possible for me to click "back to results."

Unfortunately I don't know why this only sometimes happens. Can someone else try to reproduce this? I'll try to come up with a real recipe if I can make the widget freeze again.

@cecilia-donnelly
Copy link
Author

At one point I saw this error in the console: Uncaught RangeError: maximum call stack size exceeded, which led me to this issue. On the refactor-app branch, where I saw this behavior, we initialize the Pikaday widget in setInitialVars(). Maybe I'm calling that function too many times.

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

1 participant