vkbansal / react-contextmenu

Project is no longer maintained
MIT License
1.4k stars 375 forks source link

Updated README.md with a warning #303

Closed taimoorgit closed 4 years ago

taimoorgit commented 4 years ago

I spent a lot of time debugging the onClick for MenuItem and after trying again and again I found in the issue tracker a comment explaining that every single instance of ContextMenu and ContextMenuTrigger needs to have a unique id they cannot share one even if they are the same component or use the same menu.

I think this a good change to make to the docs since it's very small and can help people prevent people from wasting time debugging. Thank you for your time.

vkbansal commented 4 years ago

Thanks for the contribution!