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.

menu items not rendering

See original GitHub issue
<Menu
        visible={true}
        onDismiss={this._closeMenu}
        anchor={this.props.passedRef.current}
        style={{ height: 100, backgroundColor: 'red' }}
      >
        <Menu.Item onPress={() => {}} title="Item 1" />
        {console.log('hey')}
        <Menu.Item onPress={() => {}} title="Item 2" />
        <Divider />
        <Menu.Item onPress={() => {}} title="Item 3" />
      </Menu>

The menu itself is rendering and so is the console.log statement

EDIT: I am trying to render a dropdown menu from the appbar component using the “dots-vertical” action button

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Birat77commented, May 27, 2021

Menu only works if visible is set to true, doesn’t work on onDismiss and anchor Button., checked on snack example

2reactions
zetaroncommented, May 6, 2020

This Snack shows the described behaviour, it is a minimally modified version taken from the Menu Documentation where only the initial visibility was changed to true

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-native Why Menu is not rendering - Stack Overflow
FlatList is a pure component and will only re-render if the data prop changes i.e, the data passed to the flatlist changes. As...
Read more >
Third level menu items not rendering [#3121195] | Drupal.org
As the title says, only top level menu items and their children are rendered--children of children simply aren't rendered.
Read more >
Why is the hierarchical menu not rendering N ... - Algolia support
I.e, your level 1 attribute will return 10 items max, your level 2 will return 10 items max, etc. If the filtering you...
Read more >
Menu - Angular Material
By itself, the <mat-menu> element does not render anything. The menu is attached ... Menus support displaying mat-icon elements before the menu item...
Read more >
MVC Menu not rendering items with areas - Telerik
png). My guess is that the Telerik Menu rendering function is attempting to security trim [Authorize] decorated action links with identical ...
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