focus on newfilemodal input when opened
This commit is contained in:
parent
6c4ba328aa
commit
1ae87ab85c
1 changed files with 4 additions and 0 deletions
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue