Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
NoTab is a pair of react components inspired by https://github.com/ChrisWren/touch-input-nav, (though with less functionality as of now). Whenever a user focuses a form field, NoTab uses React's context to disable surrounding form fields to prevent weird (iOS) tabbing behavior. Checkout the blog post for the full story, and the example page to see it in action.
tldr; Normally setting a negative tab index is enough to prevent tabbing... except on iOS
####Basic Usage NoTab is made up of two parts: a higher-order (H-O) component that wraps around whatever form(s) you're dealing with, and a H-O component that wraps each individual input/component for enabling/disabling it.
import { setupFormInput } from 'no-tab';
// The H-O component will pass the disabled prop to whatever it wraps, so at a minimum
// NoTab needs a component that passes its props to an input.
const NoTabInput = setupFormInput(props => <input {...props}/>)
// BAD: Won't Work
const derp = setupFormInput(<input/>)
As mentioned above, your NoTab inputs should be wrapped in a viewContainer somewhere higher up the tree. Two inputs with different formIds inside the same viewContainer won't be tabbable to one another when either is focused.
import { setupViewContainer } from 'no-tab';
const BasicExampleView = setupViewContainer(
() => (
<div className="example-view">
<h3>Basic Example</h3>
<NoTabInput formId="a"/>
<NoTabInput formId="b"/>
<NoTabInput formId="c"/>
<NoTabInput formId="d"/>
</div>
)
);
Checkout the example source to see both sides working together...
FAQs
Prevent ios tabbing between inputs in React forms.
The npm package no-tab receives a total of 0 weekly downloads. As such, no-tab popularity was classified as not popular.
We found that no-tab demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.