Seeking support setting up simple menu button #1778
              
                Unanswered
              
          
                  
                    
                      sskinner-quizlet
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment 12 replies
-
| Can you share a codesandbox showing the problem you're having? https://codesandbox.io/ | 
Beta Was this translation helpful? Give feedback.
                  
                    12 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to set up a simple menu button example using https://react-spectrum.adobe.com/react-aria/useMenuTrigger.html as a reference. When I copy this example code exactly, {item.rendered} is always undefined, and no items show in the menu popup. MenuItem is called 3 times as expected (since there are 3 Items as children--copy, cut, paste), but since {item.rendered} is undefined, nothing renders. What am I missing here? Is there additional setup needed to get the example working? Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions