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

New option for resetting timers #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mehrdadmhd
Copy link

I did not googled a lot for my issue, but I ended up using a bootstrap-datetimepicker enabled input inside my dropdown container on a project and modified bootstrap-hover-dropdown to add a hover event to the datetimepickers that are not children of dropdown, so dropdown won't disappear when mouse hovers on datetimepicker.
Maybe it can be used on other scenarios where you dont want dropdown to disappear when element you are working with is not child of dropdown and sorry if there are other and easier solutions.

here is my HTML for dropdown initiator:

<a href="#" data-toggle="dropdown" data-hover="dropdown" data-extra-hover=".datepicker-plot-area" data-close-others="true" data-delay="500">

where data-extra-hover is a selector for elements you want to reset hide timers.

You can also set it with options.extraHover like: $('.dropdown-toggle').dropdownHover({ extraHover : ".datepicker-plot-area"});

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