Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DropdownMenu]: DropdownMenuButton closes instead of opening the modal when "Show Modal" is activated via keyboard #2754

Closed
NatalliaAlieva opened this issue Feb 6, 2025 · 1 comment
Assignees
Labels
bug Something isn't working Dropdown Menu Label for Dropdown Menu component

Comments

@NatalliaAlieva
Copy link
Collaborator

Description

When a DropdownMenuButton is supposed to open a modal, it fails to work when triggered via keyboard. Instead of opening the modal, the action is caught by the modal's catch mechanism, preventing the expected behavior.

Steps to Reproduce

  1. Open CodeSandbox example.
  2. Use 'Tab'/'Shift+Tab' key to navigate to the Icon Button.
  3. Press 'Enter' to open the dropdown.
  4. Use the keyboard to navigate to the Show Modal option.
  5. Press 'Enter' on "Show Modal".

Actual result

The modal does not open; instead, the action is caught by the modal's catch mechanism, and the dropdown closes.

Screen.Recording.2025-02-06.at.14.09.45.mov

Expected result

The modal should open when "Show Modal" is activated via the keyboard, just like when clicked with the mouse.

Environment

  • UUI version: 5.13.0
  • Browser name: any
  • Operating System: any
@NatalliaAlieva NatalliaAlieva added the bug Something isn't working label Feb 6, 2025
@NatalliaAlieva NatalliaAlieva added the Dropdown Menu Label for Dropdown Menu component label Feb 6, 2025
@NatalliaAlieva NatalliaAlieva changed the title [Dropdown]: DropdownMenuButton does not trigger the modal when activated via keyboard [DropdownMenu]: DropdownMenuButton does not trigger the modal when activated via keyboard Feb 6, 2025
@NatalliaAlieva NatalliaAlieva changed the title [DropdownMenu]: DropdownMenuButton does not trigger the modal when activated via keyboard [DropdownMenu]: DropdownMenuButton closes instead of opening the modal when "Show Modal" is activated via keyboard Feb 6, 2025
@AlekseyManetov AlekseyManetov moved this from Backlog to Ready to release in UUI Project Board Feb 7, 2025
@AlekseyManetov AlekseyManetov self-assigned this Feb 10, 2025
@AlekseyManetov
Copy link
Collaborator

Released in 5.13.1 version

@github-project-automation github-project-automation bot moved this from Ready to release to Closed in UUI Project Board Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Dropdown Menu Label for Dropdown Menu component
Projects
Status: Closed
Development

No branches or pull requests

2 participants