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
Action: Add method to textfield component to allow developers to set an error state and message.
The text was updated successfully, but these errors were encountered:
You can use the following to force an input into an invalid state programmatically.
document.getElementById('input-field').parentElement.className += ' is-invalid'; document.getElementById('input-error').textContent = 'Error Message';
Sorry, something went wrong.
Actually, because the error and the input field are siblings, you could use
var ele = document.getElementById('input-error'); ele.parentElement.className += ' is-invalid'; ele.textContent = 'Error Message';
Closing this; superseded by #4479 . This seems like something we'd probably want to carry over to our v2 implementation.
No branches or pull requests
Action: Add method to textfield component to allow developers to set an error state and message.
The text was updated successfully, but these errors were encountered: