Skip to content

Nested menu a little bit shifted when it's opened while its parent is finishing open animation #10083

Closed
@julianobrasil

Description

@julianobrasil

Bug, feature request, or proposal:

not really a bug 😺

What is the expected behavior?

When a nested menu is opened right after its parent, it must be correctly positioned

What is the current behavior?

It's slightly shifted up in a particular situation: when you click on the menu trigger and the mouse pointer stay in a position to immediately trigger the submenu with a minimum movement. Apparently, this happens because the nested menu is triggered before the parent menu opening animation is completely finished:

image

What are the steps to reproduce?

Well, I recorded the animated gif above from the docs site, but I caught this bug while I was trying another issue, so here is the stackblitz demo of it: https://stackblitz.com/edit/angular-material-nested-submenu

image

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

I see it happening in Chrome and didn't check other browsers.

Is there anything else we should know?

Yeah, this does no harm, I no. It contributes to "High Quality" though.

cc: @crisbeto

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions