Hi. I was implementing a custom context menu when right-clicking the port. I'm trying to achieve this by using React's onContextMenu on my port. I'm using MaterialUI's Menu component, too.
The problem is every time I right-click on the port, I see a new link from that port is also created and I don't know how to get rid of that.
Hi. I was implementing a custom context menu when right-clicking the port. I'm trying to achieve this by using React's
onContextMenu
on my port. I'm using MaterialUI's Menu component, too. The problem is every time I right-click on the port, I see a new link from that port is also created and I don't know how to get rid of that.My code is as below
Any solution ? Thank you.