silevis / reactgrid

Add spreadsheet-like behavior to your React app
https://reactgrid.com
MIT License
1.24k stars 133 forks source link

Context menu remains visible after right-clicking and not selecting a menu item #409

Open testone740 opened 5 months ago

testone740 commented 5 months ago

Describe the bug The context menu stays visible after I right-click on a table then navigates away and back. This strange behavior is also found in live demos and examples where contextmenu is set. Steps to reproduce:

  1. Go to the Budget Planner example ([https://reactgrid.com/examples/?example=budget-planner])(https://reactgrid.com/examples/?example=budget-planner)
  2. Right-click on the table to bring up the context menu.
  3. Navigate away by either clicking on another example or going to the ReactGrid homepage. Note: Do not copy/paste a URL into the address bar.
  4. Go back to the Budget Planner example by clicking the browser Back button. The context menu is visible when it should not be.

Current behavior The context menu pops up when user right-clicks. User goes to another page then comes back. The context menu stays visible.

Expected behavior After context menu is visible and user navigates away, the context menu should NOT stay visible when user navigates back.

Screenshots or gifs ReactGrid-ContextMenu

Your environment details

MichaelMatejko commented 4 months ago

Thanks for submitting. I agree, this is a bug, but it's not severe. We are working on a new version now which will eliminate the context menu and enable the user to use any context menu he wants.