1
0
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:
llj
2019-11-18 17:26:28 +08:00
committed by Daniel Pan
parent e83ec67edd
commit 4e1d766f74
9 changed files with 36 additions and 44 deletions

View File

@@ -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();
}