mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-30 17:15:39 +00:00
Update dependency 3 (#5344)
* update react react-dom prop-types * update seafile-editor version * install deep-copy denpendency * update router version * repair focus bug * optimize code * optimize code
This commit is contained in:
@@ -14,11 +14,6 @@ class LogsExportExcelDialog extends React.Component {
|
||||
endDateStr: '',
|
||||
errMsg: '',
|
||||
};
|
||||
this.newInput = React.createRef();
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.newInput.focus();
|
||||
}
|
||||
|
||||
downloadExcel = () => {
|
||||
@@ -79,7 +74,7 @@ class LogsExportExcelDialog extends React.Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Modal isOpen={true} toggle={this.props.toggle}>
|
||||
<Modal isOpen={true} toggle={this.props.toggle} autoFocus={false}>
|
||||
<ModalHeader toggle={this.props.toggle}>{gettext('Choose date')}</ModalHeader>
|
||||
<ModalBody>
|
||||
<FormGroup>
|
||||
@@ -88,7 +83,7 @@ class LogsExportExcelDialog extends React.Component {
|
||||
value={this.state.startDateStr}
|
||||
onChange={this.handleStartChange}
|
||||
placeholder='yyyy-mm-dd'
|
||||
innerRef={input => {this.newInput = input;}}
|
||||
autoFocus={true}
|
||||
/>
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
|
Reference in New Issue
Block a user