Bug - [Menu] - Flyout stays open when hovering a disabled item
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start in MenuItem.js, focusing on the disabled and aria-disabled handling described in the issue, and inspect the disabled-item CSS behavior. Reproduce the flyout interaction with a disabled item after its trigger, then verify that moving onto either disabled variant closes the flyout just like a non-flyout item.
Written by the indexing model from the issue text.
Description
Describe the problem
In a Menu with containsFlyout, a flyout submenu stays open after the pointer moves from the flyout trigger onto a disabled item.
Hovering an enabled item without a flyout correctly calls setFlyoutRef(null). Disabled items never get that hover:
isDisabled:.pf-v6-c-menu__list-item.pf-m-disabledhaspointer-events: none, soonMouseOverdoes not fire.isAriaDisabled:MenuItemskipsonMouseOverwhenisAriaDisabledis true, sosetFlyoutRef(null)never runs.
How do you reproduce the problem?
- Open a Menu with
containsFlyout. - Include a flyout item, then a disabled item (
isDisabledorisAriaDisabled) immediately after it. - Hover the flyout item until the submenu opens.
- Move the pointer onto the disabled item.
Expected behavior
The flyout closes, same as hovering any other non-flyout item.
Is this issue blocking you?
No, however there is no workaround without avoiding hard-disabled items.
What is your environment?
-
OS: macOS
-
Browser: Chrome
-
Version: PatternFly React 6.6.0
What is your product and what release date are you targeting?
OpenShift Virtualization (kubevirt-plugin)
Any other information?
Seen in MenuItem.js: onMouseOver on the li is a no-op when isAriaDisabled is true. CSS: pointer-events: none on disabled list items.
https://github.com/user-attachments/assets/2b2aa70e-57ad-4ec5-97c2-2ccb8148bc8f
Jira Issue: PF-4613
Jira Issue: FELT-4293
- Dominant language
- TypeScript
- Stars
- 859
- Forks
- 395
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 15
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from patternfly/patternfly-react
-
fix(table): CollapseColumn uses wrong caret icon for expandable row togglePossibly taken @redhat-chai-bot claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
patternfly/patternfly-react#12727 ·
Maintainers usually reply within 1 day
-
Bug - PageSidebar - collapsed sidebar is aria-hidden but its navigation links stay in the tab orderPossibly taken @Sophran-fbj claimed this 4 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
patternfly/patternfly-react#12693 ·
Maintainers usually reply within 1 day
-
Bug - Label - Doesn't allow ref forwardingPossibly taken @tarunvashishth claimed this 28 days ago. OpenPF Team Stale
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
patternfly/patternfly-react#12651 · 1 comment ·
Maintainers usually reply within 1 day
-
PF Team Stale
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
patternfly/patternfly-react#12617 · 2 comments ·
Maintainers usually reply within 1 day
-
PF Team Stale
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
patternfly/patternfly-react#12610 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
All issues in patternfly/patternfly-react
Similar issues
-
[Site] Active section detection should respect scroll-margin-topPossibly taken A pull request linked to this issue is open or already merged. Openarea/web reproduced type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
anomalyco/opencode#65384 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
swc-project/swc-ai-issues#1001 ·
-
check:passed streams:add
Difficulty 1/5 Under an hour Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
CLI OAuth login fails behind an authenticating proxy: GET /api/v1/user omits Proxy-AuthorizationOpen
Difficulty 1/5 Under an hour Newbie friendliness 85/100
lightdash/lightdash#33086 · 1 comment ·
Maintainers usually reply within 1 day
-
assessment bug course exercise programming
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day