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

SplitButton: aria-expanded is not updated when clicking outside #15710

Closed
tri-harmoney opened this issue May 27, 2024 · 0 comments
Closed

SplitButton: aria-expanded is not updated when clicking outside #15710

tri-harmoney opened this issue May 27, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@tri-harmoney
Copy link
Contributor

Describe the bug

The aria-expanded attribute is not updated correctly if the menu is closed by clicking outside.

If the split menubutton is clicked the menu opens and the aria-expanded is set to true. If the user now clicks outside or presses esc button, the menu closes but the aria-expanded is not set to false but stays true.

image

Environment

macOS 14.5 (23F79)

Reproducer

No response

Angular version

17.3.7

PrimeNG version

17.16.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.13.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Click the menu open through the menubutton
  2. Close the menu by pressing ESC button or clicking outside the element
  3. Check aria-expanded

Expected behavior

aria-expanded should be set to false.

@tri-harmoney tri-harmoney added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant