mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-22 03:47:09 +00:00
[system admin] fixup for 'input space' (#4270)
This commit is contained in:
@@ -24,10 +24,10 @@ class SysAdminSetOrgNameDialog extends React.Component {
|
||||
}
|
||||
|
||||
handleInputChange = (e) => {
|
||||
const value = e.target.value.trim();
|
||||
const value = e.target.value;
|
||||
this.setState({
|
||||
name: value,
|
||||
isSubmitBtnActive: value != ''
|
||||
isSubmitBtnActive: value.trim() != ''
|
||||
});
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ class SysAdminSetOrgNameDialog extends React.Component {
|
||||
}
|
||||
|
||||
handleSubmit = () => {
|
||||
this.props.updateName(this.state.name);
|
||||
this.props.updateName(this.state.name.trim());
|
||||
this.toggle();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user