How To Affix Dropdown List Menu Next To Selected Dropdown Button When User Scrolling?
I have faced the similar problem occurred on this page as in my App. When a user selects the drop-down list it will open drop-down menu. But, When the user scroll down the page, th
Solution 1:
I've recently faced this type of issue.
So I've used mouseenter,mouseleave events.
$( ".menu-open" )
// not necessary
.mouseenter(function() {
$( this ).show();
})
// you must put this to hide menu when user leaves the menu
.mouseleave(function() {
$( this ).hide();
});
Well so by using above code it will hide the menu as soon as user moves cursor out of the menu.
It will be quite good experience for users as well, like they don't care if menu get closed when they don't need it more. but if it will kept open unless user again click on menu to close it so feel odd.
Like the same I get from your given e.g. link.
Or else you can use scroll event like once user scroll down to specific value you can check if menu is opened then you can hide it.
Post a Comment for "How To Affix Dropdown List Menu Next To Selected Dropdown Button When User Scrolling?"