Bulma: navbar-dropdown disappearing on hover

Created on 14 Jul 2017  路  11Comments  路  Source: jgthms/bulma



Overview of the problem

This is about the Bulma CSS framework

I'm using Bulma version [0.4.3]
My browser is: Chrome Version 59.0.3071.115 (official Build) (64-Bit Linux Mint)
This is a Sass issue: I'm using version [0.4.3]
I am sure this issue is not a duplicate.

Description

Hey folks. I'm builing a laravel-app with bulma and wanted to use the new navbar-component.
My html is in the attached screenshoot (github won't let me...).
image

Now everytime I hover over the "Somewhat" the dropdown pops open (yay!) but as soon as I move my mouse down to the Dropdown-content -> it disappears.

Steps to Reproduce

  • Create a new laravel-app
  • install bulma via npm
  • set a new view
  • set the navbar inside the app-layout, outside of the view-content
  • add a nav with navbar-brand + navbar-burger
  • add the above code after the closed navbar-brand
  • Error!

Expected behavior

That the dropdown-content stayes visible while I'm inside the dropdown-area with my mouse.

Actual behavior

Is disappeared. Bad dropdown!
output

browser bug stale

Most helpful comment

I could reproduce the problem. I fixed it by increasing the z-index value of my navbar. Apply the following in your stylesheets:


#my-navbar-selector {
    z-index: 1000;
}

All 11 comments

I have the same issue on Firefox 54

Plus personally I don't think it's a browser-issue, since Google are the most upfront when it comes to new standards and stuff...

I haven't been able to reproduce it. I'll have to investigate.

Have the same problem here. Seem like if there is a container underneath the list, the container get the focus and not the dropdown.

As I expected, if i put a breadcrum right under the navbar i don't have the problem. An empty breadcrum div will also solve the problem.

@brenouchoa Can you share the code please ? Thank you

I could reproduce the problem. I fixed it by increasing the z-index value of my navbar. Apply the following in your stylesheets:


#my-navbar-selector {
    z-index: 1000;
}

Same issue here. Only when navbar is inside a container.

Increasing z-index fixes it.

this is should me merge for upgrading i guess, thanks for @suchmaske

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Has this been fixed or do we still have to use the workaround provided by @suchmaske ?

Was this page helpful?
0 / 5 - 0 ratings