Skip to content

fix(cdk/menu): clear pending menu aim timeout on destroy - #33900

Open
MeAkib wants to merge 1 commit into
angular:mainfrom
MeAkib:fix/cdk-menu-aim-clear-timeout
Open

MeAkib wants to merge 1 commit into
angular:mainfrom
MeAkib:fix/cdk-menu-aim-clear-timeout

Conversation

@MeAkib

@MeAkib MeAkib commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

When the user moves towards an open submenu and stops on a sibling item, TargetMenuAim delays toggling the sibling's menu using a timeout. The timeout wasn't being cleared on destroy which meant that if the menu was destroyed while it was pending, the sibling's menu would still be opened afterwards.

These changes clear the timeout on destroy and remove the delay that the tests had to wait for after each test.

When the user moves towards an open submenu and stops on a sibling item, `TargetMenuAim` delays toggling the sibling's menu using a timeout. The timeout wasn't being cleared on destroy which meant that if the menu was destroyed while it was pending, the sibling's menu would still be opened afterwards.

These changes clear the timeout on destroy and remove the delay that the tests had to wait for after each test.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant