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

A second level sub menu should not open on top of the original menu even when that is close to the right edge #8610

Open
Artur- opened this issue Feb 3, 2025 · 0 comments

Comments

@Artur-
Copy link
Member

Artur- commented Feb 3, 2025

Description

When you have multiple levels of sub menus and no space to the right of the original menu, you would expect sub menus to keep opening to the left and not like currently that the first sub menu opens to the left and the next sub menu overlaps the original menu (probably with 3rd level overlapping the first etc, did not test)

Expected outcome

The sub menus keep opening in the same direction as originally, unless the left edge is hit, then the direction changes again.

Minimal reproducible example

const items = [
  {
    text: 'Share',
    children: [
      {
        text: 'On social media',
        children: [{ text: 'Facebook' }, { text: 'Twitter' }, { text: 'Instagram' }],
      },
    ],
  },
 

return <MenuBar items={items} /> ;

Steps to reproduce

Place it at the right edge, open it

Environment

Vaadin version(s): 24.7 alpha
OS: macOs

Browsers

Issue is not browser related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants