1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-22 03:47:09 +00:00

[eslint] updated eslintrc and improved the code (#4702)

This commit is contained in:
llj
2020-11-02 13:56:35 +08:00
committed by GitHub
parent ed3e5fc416
commit 04f29704b3
337 changed files with 1586 additions and 1585 deletions

View File

@@ -61,7 +61,7 @@ class CreateForder extends React.Component {
let path = this.state.parentPath + newName;
this.props.onAddFolder(path);
}
}
}
handleKeyPress = (e) => {
if (e.key === 'Enter') {
@@ -87,11 +87,11 @@ class CreateForder extends React.Component {
<Form>
<FormGroup>
<Label for="folderName">{gettext('Name')}</Label>
<Input
id="folderName"
value={this.state.childName}
innerRef={input => {this.newInput = input;}}
onKeyPress={this.handleKeyPress}
<Input
id="folderName"
value={this.state.childName}
innerRef={input => {this.newInput = input;}}
onKeyPress={this.handleKeyPress}
onChange={this.handleChange}
/>
</FormGroup>