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