react-laag
react-laag copied to clipboard
[BUG] onOutsideClick doesn't get called when you right-click outside of the trigger with mouse position
To Reproduce Steps to reproduce the behavior:
- Go to https://codesandbox.io/s/cool-gates-qcd5x?file=/src/App.js:0-66
- Right-click on all 3 triggers
- All 3 layers are visible
Expected behavior
Expected onOutsideClick to be called.
or maybe it's more semantically right to add onOutsideContextMenu option to useLayer