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
After submitting a form I'd like to clear the data.
Usually this should be enough
this.refs.requestForm.getDOMNode().reset();
But didn't work, also I tried
React.findDOMNode(this.refs.phone).value = '';
Both ways work for common inputs, but no luck with inputmask. Any suggestion ?
The text was updated successfully, but these errors were encountered:
Late to comment on this but I found the solution.
If you use ref on a MaskedInput, you need to call: this.refs.<YOUR REF NAME>.input to access values or reset.
this.refs.<YOUR REF NAME>.input
this.refs.requestForm.input.getDOMNode().reset(); should work for your case
this.refs.requestForm.input.getDOMNode().reset();
Sorry, something went wrong.
No branches or pull requests
After submitting a form I'd like to clear the data.
Usually this should be enough
But didn't work, also I tried
Both ways work for common inputs, but no luck with inputmask. Any suggestion ?
The text was updated successfully, but these errors were encountered: