question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[UI shell] [react] Last header menu item dropdown is not expanded on click

See original GitHub issue

While using Header menu and header menu items the last menu item is not expanded.

Packages and components used:

HeaderNavigation, HeaderMenu, HeaderMenuItem

  • carbon-components
  • carbon-components-react

Detailed description

Describe in detail the issue you’re having.

Please navigate to this codesandbox url and click the Link 5 menu item then Link 4.

When I click Link4 the sub menu items open and close properly whereas when I click Link 5 the sub menu items open and close immediately. Also just clicking the Link 5 when the Link 4 is clicked the Link 5 sub menu items open.

Is this issue related to a specific component?

Yes. React UI Shell with Header actions and Nav

What did you expect to happen? What happened instead? What would you like to see changed?

On clicking the menu item it should be active(expanded).

What browser are you working in?

Google

What version of the Carbon Design System are you using?

  • carbon-components -10.4.1
  • carbon-components-react -7.4.1

Please create a reduced test case in CodeSandbox

https://codesandbox.io/s/header-with-actions-and-nav-2pf3p

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
tw15egancommented, Jan 23, 2020

@ndite like I said, I’m not seeing this locally so I’m hoping this issue will be resolved when we publish our next release

1reaction
tw15egancommented, Jan 21, 2020

Interesting, running it locally I’m not running into any issues when I add in another MenuItem… But I see the issue when I checkout the CodeSandbox. Seems like this may be fixed in the newest release when it’s released. I’m seeing a bunch of fixes for UI-Shell that are not out yet: https://github.com/carbon-design-system/carbon/compare/v10.9.2...master

ui-shell

Read more comments on GitHub >

github_iconTop Results From Across the Web

DropDown menu is not aligning correctly in AppBar
The dropdown menu is not aligning correctly. I am following https://mui.com/material-ui/react-menu/#account-menu document. My text code:.
Read more >
UI shell header – Carbon Design System
Includes links and dropdowns for a simple navigation. Header with actions, Actions or utilities appear in the header as icon buttons to give...
Read more >
Building Accessible Menu Systems - Smashing Magazine
Lots of things "drop down" in interfaces, including the set of <option> s from a <select> element, and the JavaScript-revealed list of links ......
Read more >
A Quick Guide to Dropdown Menus With React - Telerik
Clicking on What's New opens a dropdown menu with #. If a simple navigation dropdown wasn't enough, there are websites that incorporate mega- ......
Read more >
How to Capture the Value of Dropdown Lists with React ...
Every UI component, such as forms, inputs, tooltips, dropdowns, modals, etc., are all separate React based components in React Bootstrap. This ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found