question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Long Menu not accessible on Chrome

See original GitHub issue

When a Menu list extends beyond the bottom of the screen clicking on any item after scrolling down the menu does not select the item, but rather snaps the menu list back to the top.

This is observed only on Chrome only. I tested on Chrome Version 80.0.3987.163 (Official Build) (64-bit). The menu seems to work fine on Firefox and Safari.

Expected Behavior

Behavior of Menu on Chrome should match Firefox and Safari.

Steps to Reproduce

Create a long menu. Clicking on an initially visible item works. However, try to scroll the menu and click on an element at bottom and it will not be selected.


export function MenuTest(props) {

    const [item, setItem] = useState(1)

    const menuItems = []
    for (let i=0; i<100; i++) {
        menuItems.push({label: i+1, onClick: () => setItem(i+1)})
    }

    return (
        <Box>
            <Box direction={'row'}>
                <Text>Lower menu not acessible</Text>
                <Menu
                    label={item}
                    items={menuItems}
                />
            </Box>

        </Box>

    )
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
IanKBovardcommented, May 6, 2020

Kapture 2020-05-06 at 13 02 25

0reactions
IanKBovardcommented, May 19, 2020

Just tested, #4096 addresses the issue. This can be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Menus Not Working - Google Chrome Community
The drop down menus for different websites on the initial google search page are not working, like if you were to search "movie...
Read more >
Chrome long-press context menu stopped working
I've never encountered this problem, but what I'd try first is to clear the cache. Go to Settings/Apps/All, select Chrome, and tap Clear...
Read more >
Topic: Why don't my menus show on Chrome? - WordPress.com
The menu shows up. When I go to the Edit Menus page in chrome, it doesn't show my menus. This cannot be the...
Read more >
My bootstrap collapse menu not working on Google Chrome
If your intention is to have the menu opened on first load (or resize) use in your html: <div class="nav-collapse collapse in" style="height:auto;">....
Read more >
Where Is the Chrome Menu Bar? - Nira
You can access the menu by clicking the “three vertical dots” at the top ... of the OS, not Chrome, they're just offered...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found