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:
@@ -49,6 +49,10 @@ class CreateFile extends React.Component {
|
||||
}
|
||||
|
||||
handleSubmit = () => {
|
||||
if (!this.state.isSubmitBtnActive) {
|
||||
return;
|
||||
}
|
||||
|
||||
let isDuplicated = this.checkDuplicatedName();
|
||||
let newName = this.state.childName;
|
||||
|
||||
|
@@ -46,6 +46,10 @@ class CreateForder extends React.Component {
|
||||
}
|
||||
|
||||
handleSubmit = () => {
|
||||
if (!this.state.isSubmitBtnActive) {
|
||||
return;
|
||||
}
|
||||
|
||||
let newName = this.state.childName;
|
||||
let isDuplicated = this.checkDuplicatedName();
|
||||
|
||||
|
Reference in New Issue
Block a user