react-contexify
react-contexify copied to clipboard
Make preventing default on keydown optional - Fixes #168
Preventing default on keydown causes all inputs on the page to stop working whilst the Menu component is mounted. Some apps have the menu mounted whilst not in use, causing inputs to stop working.
Adds a flag to disable this feature and also makes it work as intended only for keys required for operating the menu that may cause the window to scroll.
Related issue #168
Before submitting a pull request, please make sure the following is done:
- Fork the repository and create your branch from
master
. - Run
yarn
in the repository root. - If you've fixed a bug or added code that should be tested, add tests!
- Run
yarn start
in the example folder to test your changes. - Ensure the test suite passes (
yarn test
). It uses the example - Update the readme if needed or the documentation
- Update the typescript definition is needed
- Make sure your code lints (
yarn lint --fix
).
Learn more about contributing here
why this not merge into?