Event is not registered. Did you forgot to bind the event ?
See original GitHub issueHello,
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:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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 ineventManager_1.eventManager
.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 😃