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

Fix bug when fixing enter

This commit is contained in:
zxj96
2019-05-17 14:17:52 +08:00
parent 53a6926b23
commit 94246d1d67
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();