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.

Event is not registered. Did you forgot to bind the event ?

See original GitHub issue

Hello, I’m trying to make context menu work but I have some issue when I right click on my text that should display the context menu : js <display::menu> Event is not registered. Did you forgot to bind the event ?

const myMenu = () => (<ContextMenu id="menu">
                          <Item >Ipsum</Item>
                       </ContextMenu>);
        
        return {icons: [
                <div
                style={iconStyle}
              />,
            ],
            title : 
                     <div>
                          <ContextMenuProvider id="menu">
                          <span>{rowInfo.node.title}</span>
                          </ContextMenuProvider>
                          {myMenu}
                          </div>
                          ,
            onClick: event => this.nodeClicked(event, rowInfo),
            style : innerStyle
        };

I’m using it with react-sortable-tree to add a contextual menu on my items…

Thanks !

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
jerrythimothyjcommented, Jul 23, 2019

@fkhadra , I am facing this issue <DISPLAY_var_20> Event is not registered. Did you forgot to bind the event ?

I am dynamically adding an element which contains Menu component inside it. I am passing id like this <Menu id={menuId}> which is always unique like a key.

If I inspect via React console, everything seems same as the already generated elements.

But, when I click try to open the context menu from the newly created element, I get that error.

I cannot find the dynamically created entry in the eventList Map in eventManager_1.eventManager .

1reaction
jkeruzeccommented, Jul 9, 2018

Ok clever see!, I already tried it in my implementation to add unique id for menu but I was mistaken by a wrong z-index … !!

Thanks your lighting fast help 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Click events not registered - javascript - Stack Overflow
If you are using jQuery than better use "bind" event to bind your click event. For example: <div class="appLauncher" data-id= ' + i...
Read more >
Handling Events - React
If you forget to bind this.handleClick and pass it to onClick , this will be undefined when the function is actually called.
Read more >
APHA Annual Meeting and Expo Registration
Full meeting registration includes access to all in-person sessions and the digital meeting. In-person attendees can meet exhibitors at the three-day Public ...
Read more >
Youth Registration System Overview | FIRST - Firstinspires.org
Youth team members who have not registered will not be permitted to participate in FIRST remote and in-person team meetings, events, or competitions....
Read more >
Resetting your forgotten password - Zoom Support
If you have forgotten your Zoom password, you can easily reset it ... Account does not exist; Didn't receive confirmation email; Link has ......
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