clear text in input when node mounts
This commit is contained in:
@@ -20,6 +20,8 @@ export default class Input extends Component {
|
||||
if (this.props.autoFocus) {
|
||||
this.fieldNode.focus();
|
||||
}
|
||||
|
||||
this.fieldNode.value = '';
|
||||
}
|
||||
|
||||
onKeyDown(e) {
|
||||
|
||||
Reference in New Issue
Block a user