Page 1 of 1

Dropdown Menu question

Posted: Sun Jan 08, 2023 2:27 pm
by dannac
Have dropdown menu with style set to where you do not have to click on main subject to see sub items

but at times it loses focus before you have time to click a sub menu item

how to fix please

demo

https://app.box.com/s/6bijp4ivtpycl7e7mu3moowb8j9j9sny

Re: Dropdown Menu question

Posted: Sun Jan 08, 2023 3:18 pm
by Pablo
What are the exact steps to reproduce this behavior?

Re: Dropdown Menu question

Posted: Sun Jan 08, 2023 3:54 pm
by dannac
Pablo wrote: Sun Jan 08, 2023 3:18 pm What are the exact steps to reproduce this behavior?
5 Main tabs in menu ... 3 of the tabs have dropdowns

Hover over a tab and the dropdown shows but as soon as I lower cursor to choose sub item,
the dropdown disappears and cannot choose sub item

30 second video
https://app.box.com/s/5pz7vw11qi5su25xqgpeuzcn38o4msj1

Thanks

Realize I can choose style to click on main item ... but would rather not do that to choose a sub item

Re: Dropdown Menu question

Posted: Sun Jan 08, 2023 4:11 pm
by crispy68
@Pablo,

I can see what he is saying in the demo. Sometimes it works and sometimes the submenu will disappear when moving from button to submenu. Not sure if this has anything to do with it but when I view the CSS I see this line:

Code: Select all

.DropdownMenu1 .dropdown-hover > .dropdown-men{margin-top: -1px !important;}
I can see a 1px gap between button and dropdown. If I change it to -2px above it closes that gap and then it seems to work without issue. Not sure if this is the culprit but maybe a place to start. :wink:

Re: Dropdown Menu question

Posted: Sun Jan 08, 2023 4:26 pm
by dannac
Thanks crispy68

Is that something I can adjust ?

If yes, how do I find that CSS code line you referred to ?

Re: Dropdown Menu question

Posted: Sun Jan 08, 2023 4:35 pm
by crispy68
You would have to open up the page's CSS file after publishing to change it and would need to do this each time you republish your page(s). This will be tedious if you have multiple pages.

Would be easier to add this code to the page html:

Code: Select all

<style>
.DropdownMenu1 .dropdown-hover > .dropdown-menu{margin-top:-2px !important;}
</style>
However, you may want to wait for Pablos response on this to see if he has a better idea. :D

Re: Dropdown Menu question

Posted: Sun Jan 08, 2023 4:39 pm
by dannac
crispy68 wrote: Sun Jan 08, 2023 4:35 pm You would have to open up the page's CSS file after publishing to change it and would need to do this each time you republish your page(s). This will be tedious if you have multiple pages.

Would be easier to add this code to the page html:

Code: Select all

<style>
.DropdownMenu1 .dropdown-hover > .dropdown-menu{margin-top:-2px !important;}
</style>
However, you may want to wait for Pablos response on this to see if he has a better idea. :D
Ok ... thank you !

Re: Dropdown Menu question

Posted: Sun Jan 08, 2023 4:53 pm
by Pablo
Thanks, but I am not sure if the margin is causing this.
It looks like Bootstrap's 'popper' script is adding the offset.
I will look into this, they may have an update for this.

Re: Dropdown Menu question

Posted: Sun Jan 08, 2023 4:58 pm
by dannac
Pablo wrote: Sun Jan 08, 2023 4:53 pm Thanks, but I am not sure if the margin is causing this.
It looks like Bootstrap's 'popper' script is adding the offset.
I will look into this, they may have an update for this.
Ok ... thanks !

Re: Dropdown Menu question

Posted: Sun Jan 08, 2023 6:00 pm
by Bluesman
Pablo wrote: Sun Jan 08, 2023 4:53 pm Thanks, but I am not sure if the margin is causing this.
It looks like Bootstrap's 'popper' script is adding the offset.
I will look into this, they may have an update for this.
Hi Pablo... I have the same problem with the Themeable menu. After publish I put the marker over the menu item with submenues and when the submenues appear I move the marker down for choosing a sub, but it disappear. If I click on the main menu button before and mowe the marker down, it works??
Ex site I'm working on now:
https://www.tpcab.se/ongoing

Addition: It appears a bit irregular... moving the marker out and over again and it appears again...

Re: Dropdown Menu question

Posted: Sun Jan 08, 2023 8:53 pm
by Pablo
The themeable menu and drop down menu are using the same script (Bootstrap), so this is most likely the same issue.

Re: Dropdown Menu question

Posted: Tue Jan 10, 2023 3:36 pm
by dannac
Pablo wrote: Sun Jan 08, 2023 4:53 pm Thanks, but I am not sure if the margin is causing this.
It looks like Bootstrap's 'popper' script is adding the offset.
I will look into this, they may have an update for this.
Any progress on this ?

Re: Dropdown Menu question

Posted: Tue Jan 10, 2023 3:42 pm
by Pablo
An update with a workaround will be released within a few days.

Re: Dropdown Menu question

Posted: Tue Jan 10, 2023 4:47 pm
by dannac
Thanks

Re: Dropdown Menu question

Posted: Wed Jan 11, 2023 1:36 am
by Bluesman
Pablo wrote: Tue Jan 10, 2023 3:42 pm An update with a workaround will be released within a few days.
Nice! :)

Re: Dropdown Menu question

Posted: Wed Jan 11, 2023 12:58 pm
by Bluesman
Pablo wrote: Tue Jan 10, 2023 3:42 pm An update with a workaround will be released within a few days.
Seams to work for me now... Installed the last hotfix today and have tested the menu. Works good :D
GRACIAS PABLO

Re: Dropdown Menu question

Posted: Sun Jan 15, 2023 12:04 pm
by dannac
Bluesman wrote: Wed Jan 11, 2023 12:58 pm Installed the last hotfix today and have tested the menu. Works good
Where would the hot fix be found ?

Re: Dropdown Menu question

Posted: Sun Jan 15, 2023 12:07 pm
by jerryco

Re: Dropdown Menu question

Posted: Sun Jan 15, 2023 4:58 pm
by dannac
Thanks