1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 19:37:28 +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

@@ -20,13 +20,10 @@ class SysAdminAddInstitutionDialog extends React.Component {
handleChange = (e) => {
const value = e.target.value;
if (!value.trim()) {
this.setState({isSubmitBtnActive: false});
} else {
this.setState({isSubmitBtnActive: true});
}
this.setState({value: value});
this.setState({
value: value,
isSubmitBtnActive: value.trim() != ''
});
}
handleSubmit = () => {