Skip to content

[EuiHeaderLinks][EuiHeaderLink] doesn't close menu after item is selected #7587

@fatokik

Description

@fatokik

Is your feature request related to a problem? Please describe.
When using these components, along with the popoverBreakpoints prop it works extremely well. However, I wanted to close the menu after an item is selected but I believe there is currently no way to do so. I noticed there is a 'popover' prop that could be passed in but the 'button' and 'closePopover' properties were omitted so I wasn't able to get my desired behavior with these components

Describe the solution you'd like
I would like to have the option to be able to close the popover after an item is selected from the menu. This could include adding another prop for this feature or just reintroducing the button and closepopover properties back into the popover props

Describe alternatives you've considered
I was able to get my desired functionality by making a EuiHeaderSectionItemButton, an EuiPopover, and styling it to match the popover from EuiHeaderLinks

Desired timeline
No timeline, I just wanted to make it known

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions