react-laag icon indicating copy to clipboard operation
react-laag copied to clipboard

[BUG] onOutsideClick doesn't get called when you right-click outside of the trigger with mouse position

Open kyeo76 opened this issue 3 years ago • 1 comments

To Reproduce Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/s/cool-gates-qcd5x?file=/src/App.js:0-66
  2. Right-click on all 3 triggers
  3. All 3 layers are visible

Expected behavior Expected onOutsideClick to be called.

Screen Shot 2021-05-13 at 6 24 23 PM

kyeo76 avatar May 13 '21 15:05 kyeo76

or maybe it's more semantically right to add onOutsideContextMenu option to useLayer

kyeo76 avatar May 20 '21 21:05 kyeo76