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

Merge pull request #3487 from haiwen/repire_enter

Fix bug when fixing enter
This commit is contained in:
Daniel Pan
2019-05-17 14:25:29 +08:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -49,6 +49,10 @@ class CreateFile extends React.Component {
}
handleSubmit = () => {
if (!this.state.isSubmitBtnActive) {
return;
}
let isDuplicated = this.checkDuplicatedName();
let newName = this.state.childName;

View File

@@ -46,6 +46,10 @@ class CreateForder extends React.Component {
}
handleSubmit = () => {
if (!this.state.isSubmitBtnActive) {
return;
}
let newName = this.state.childName;
let isDuplicated = this.checkDuplicatedName();