focus on newfilemodal input when opened

This commit is contained in:
catarak 2016-09-03 19:42:23 -04:00
parent 6c4ba328aa
commit 1ae87ab85c
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@ class NewFolderForm extends React.Component {
this.createFolder = this.props.createFolder.bind(this);
}
componentDidMount() {
this.refs.fileName.focus();
}
render() {
const { fields: { name }, handleSubmit } = this.props;
return (