We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is there a way i can only delete the focused input box ? My code
<OtpInputs autoFocus={false} defaultValue={value} style={styles({ theme, colorMode }).main} inputContainerStyles={styles({ theme, colorMode }).inputContainerStyles} inputStyles={styles({ theme, colorMode }).inputStyles} autofillFromClipboard={true} // auto fill from sms keyboardType="phone-pad" focusStyles={ isInvalid ? styles({ theme, colorMode }).error : styles({ theme, colorMode }).focusStyles } handleChange={code => { resetErrorState(); if (code.match(/^[0-9]*$/)) { setValue(code); } }} numberOfInputs={CELL_COUNT} />
The text was updated successfully, but these errors were encountered:
No branches or pull requests
is there a way i can only delete the focused input box ?
My code
<OtpInputs
autoFocus={false}
defaultValue={value}
style={styles({ theme, colorMode }).main}
inputContainerStyles={styles({ theme, colorMode }).inputContainerStyles}
inputStyles={styles({ theme, colorMode }).inputStyles}
autofillFromClipboard={true} // auto fill from sms
keyboardType="phone-pad"
focusStyles={
isInvalid
? styles({ theme, colorMode }).error
: styles({ theme, colorMode }).focusStyles
}
handleChange={code => {
resetErrorState();
if (code.match(/^[0-9]*$/)) {
setValue(code);
}
}}
numberOfInputs={CELL_COUNT}
/>
The text was updated successfully, but these errors were encountered: