Open
Description
Describe the bug
I've set a max-height
and overflow:auto
to the ul
element, so I can have scroll on the context menu. When i have too much items in the context menu and i navigate with arrowUp or arrowDown keys, the scroll doesn't follow the active item
To Reproduce
Steps to reproduce the behavior:
- add the following css to the application:
.cdk-overlay-pane.ngx-contextmenu ul {
max-height: 234px;
overflow: auto;
}
- Open a context menu with too much items (40 or 50)
- Press successively arrowDown key until the active item gets hiden
- You will notice that the scroll doesn't move, and the active item is not visible
Expected behavior
It's expected that the scroll should move together when the active item is not more visible on the screen
Stackblitz Example
Please fork this base example to demonstrate the issue you're experiencing.
Metadata
Metadata
Assignees
Labels
No labels