1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 23:00:57 +00:00

Merge branch '7.0'

This commit is contained in:
plt
2019-07-02 14:52:20 +08:00
3 changed files with 22 additions and 14 deletions

View File

@@ -61,6 +61,13 @@ class LibHistorySetting extends React.Component {
}
}
handleKeyPress = (e) => {
if (e.key === 'Enter') {
this.submit();
e.preventDefault();
}
}
onChange = (e) => {
let num = e.target.value;
this.setState({
@@ -123,6 +130,7 @@ class LibHistorySetting extends React.Component {
value={this.state.expireDays}
onChange={this.onChange}
disabled={this.state.disabled}
onKeyDown={this.handleKeyPress}
/>{' '}
<Label><span>{gettext('days')}</span></Label>
</FormGroup>