insin / insin/inputmask-core

How to clear a field?

Open
#7 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
303
Forks
51
PR merge metrics
No merged PRs in 30d

Description

After submitting a form I'd like to clear the data.

Usually this should be enough

``` javascript
this.refs.requestForm.getDOMNode().reset();
```

But didn't work, also I tried

``` javascript
React.findDOMNode(this.refs.phone).value = '';
```

Both ways work for common inputs, but no luck with inputmask. Any suggestion ?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.