tab-out-catcher
This is a simple lib to wrap a container (such as form) and prevent jumping out from it by pressing Tab-button
get started
- import tab-out-catcher.min.js from root directory (tag script)
- get the container of form to wrap
- execute catchTheTab function with selected form
... <!-- 1 menu item -->
npm
https://www.npmjs.com/package/tab-out-catcher
react
tab-out-catcher with react:
npm https://www.npmjs.com/package/react-tab-out-catcher
github https://github.com/kpodmasko/react-tab-out-catcher
example
try it first:
https://codepen.io/xknowledgeless/project/full/XMJLvg