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
Hi there, Is there any option to make the "input field" disabled?
The text was updated successfully, but these errors were encountered:
Hey, thanks for pointing this out... Not having a handy "disabled" prop is a pretty big omission. I'll look into adding it.
In the meantime, you can add pointer-events: none to the editable DOM element, which will effectively disable it, via the setEditableProps prop.
pointer-events: none
setEditableProps
So, something like this would be uneditable:
<TxRegionsInput setEditableProps={{ style: { pointerEvents: 'none'} }} placeholder="Firstname" preset="email" />
You could add styling to it via the className prop in the setEditableProps:
className
<TxRegionsInput setEditableProps={{ className: 'disabled-form-input', style: { pointerEvents: 'none'} }} placeholder="Firstname" preset="email" />
Sorry, something went wrong.
No branches or pull requests
Hi there,
Is there any option to make the "input field" disabled?
The text was updated successfully, but these errors were encountered: