1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 10:22:46 +00:00

Merge branch '10.0'

This commit is contained in:
lian
2023-10-09 09:47:52 +08:00
6 changed files with 60 additions and 6 deletions

View File

@@ -150,6 +150,15 @@ class OrgUsersSearchUsers extends Component {
});
};
handleKeyDown = (e) => {
if (e.keyCode === 13) {
const { isSubmitBtnActive } = this.state;
if (isSubmitBtnActive) {
this.getItems();
}
}
}
render() {
const { query, isSubmitBtnActive } = this.state;
@@ -166,7 +175,7 @@ class OrgUsersSearchUsers extends Component {
<Form tag={'div'}>
<FormGroup row>
<Col sm={5}>
<Input type="text" name="query" value={query} placeholder={gettext('Search users')} onChange={this.handleInputChange} />
<Input type="text" name="query" value={query} placeholder={gettext('Search users')} onChange={this.handleInputChange} onKeyDown={this.handleKeyDown} />
</Col>
</FormGroup>
<FormGroup row>