clear text in input when node mounts

This commit is contained in:
igoradamenko
2018-05-03 03:03:15 +03:00
parent 5d6738cce7
commit 797bb1b5ed
+2
View File
@@ -20,6 +20,8 @@ export default class Input extends Component {
if (this.props.autoFocus) {
this.fieldNode.focus();
}
this.fieldNode.value = '';
}
onKeyDown(e) {