保留也挺好
This commit is contained in:
parent
602eaf5906
commit
366c5a4cc5
|
@ -29,7 +29,6 @@ export default class DocSearch extends React.Component {
|
||||||
this.onOpen = this.onOpen.bind(this);
|
this.onOpen = this.onOpen.bind(this);
|
||||||
this.onClose = this.onClose.bind(this);
|
this.onClose = this.onClose.bind(this);
|
||||||
this.onEntered = this.onEntered.bind(this);
|
this.onEntered = this.onEntered.bind(this);
|
||||||
this.onExited = this.onExited.bind(this);
|
|
||||||
this.clearValue = this.clearValue.bind(this);
|
this.clearValue = this.clearValue.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,10 +104,6 @@ export default class DocSearch extends React.Component {
|
||||||
this.ref.current.focus();
|
this.ref.current.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
onExited() {
|
|
||||||
this.setState({searchResults: []});
|
|
||||||
}
|
|
||||||
|
|
||||||
clearValue() {
|
clearValue() {
|
||||||
this.setState(
|
this.setState(
|
||||||
{
|
{
|
||||||
|
@ -136,7 +131,6 @@ export default class DocSearch extends React.Component {
|
||||||
closeOnOutside
|
closeOnOutside
|
||||||
onHide={this.onClose}
|
onHide={this.onClose}
|
||||||
onEntered={this.onEntered}
|
onEntered={this.onEntered}
|
||||||
onExited={this.onExited}
|
|
||||||
show={this.state.show}
|
show={this.state.show}
|
||||||
position={'right'}
|
position={'right'}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue