Skip to content

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