Skip to content

Aria: context menu doesn't close on outside click unless hovered first #69222

@Timmeeeey

Description

@Timmeeeey

Describe the problem that you experienced

When I open the context menu by right-clicking inside the target area, clicking somewhere outside the menu doesn't close it, the menu stays open.
The only time clicking outside does close it is if I first move my mouse over the menu (hover on it), and then click outside. Without hovering first, outside clicks are ignored and the menu remains open.
I'd expect the context menu to close whenever I click outside of it, whether or not I hovered over it first.

Enter the URL of the topic with the problem

https://angular.dev/guide/aria/menu

Describe what you were looking for in the documentation

No response

Describe the actions that led you to experience the problem

No response

Describe what you want to experience that would fix the problem

No response

Add a screenshot if that helps illustrate the problem

No response

If this problem caused an exception or error, please paste it here


If the problem is browser-specific, please specify the device, OS, browser, and version


Provide any additional information here in as much as detail as you can


Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docsRelated to the documentationgemini-triagedLabel noting that an issue has been triaged by gemini

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions