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

Improve focus-out detection #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Improve focus-out detection #5

wants to merge 2 commits into from

Conversation

ivaynberg
Copy link

  • Go to index html
  • Click into the first field - timepicker opens
  • Scroll the time picker using its scrollbar up or down
  • Click somewhere outside the timepicker
  • Timepicker remains open

The problem is that tpOver will remain true since no mouseout is received if the mouse moves from over the scrollbar out of the $tpDiv.

My fix is trivial. It listens for every click and if the clicked element is not a child of $tpDiv it closes the picker.

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

Successfully merging this pull request may close these issues.

1 participant