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.
![Screen Shot 2021-05-13 at 6 24 23 PM](https://user-images.githubusercontent.com/1942158/118147707-85af3900-b418-11eb-88b8-12b56570dd36.png)
or maybe it's more semantically right to add onOutsideContextMenu
option to useLayer