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

Dropdown date picker is not closing fast enough #112

Open
labros-zotos opened this issue Nov 13, 2019 · 1 comment
Open

Dropdown date picker is not closing fast enough #112

labros-zotos opened this issue Nov 13, 2019 · 1 comment

Comments

@labros-zotos
Copy link

I have two input fields(one next to each other) with dropdown date picker enabled for both of them.
When I click on one of the fields the dropdown date picker is displayed as it is expected.

However when I click on the second field (while the date picker of the first one is still open) there is a delay in closing the first date picker. As a result two date pickers are displayed for half a second one on top of the other.

Has anyone else encountered this issue? Is there a delay somewhere in the source code that I cannot find, maybe bound to a click or focus event?

Thank you in advance.

@mnvdmitry
Copy link

Try to hang the handler on the container and check that the click is made outside it
https://github.com/chrisdavies/tiny-date-picker/blob/02f8b092f16803d46321929e53b8b804456c37aa/test/date-range.html

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

No branches or pull requests

2 participants