From 366c5a4cc514261f78ad38526ad7a3299e29c6e3 Mon Sep 17 00:00:00 2001 From: RickCole21 Date: Fri, 21 Aug 2020 17:36:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E7=95=99=E4=B9=9F=E6=8C=BA=E5=A5=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/components/DocSearch.jsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/examples/components/DocSearch.jsx b/examples/components/DocSearch.jsx index 74620561..294c692b 100644 --- a/examples/components/DocSearch.jsx +++ b/examples/components/DocSearch.jsx @@ -29,7 +29,6 @@ export default class DocSearch extends React.Component { this.onOpen = this.onOpen.bind(this); this.onClose = this.onClose.bind(this); this.onEntered = this.onEntered.bind(this); - this.onExited = this.onExited.bind(this); this.clearValue = this.clearValue.bind(this); } @@ -105,10 +104,6 @@ export default class DocSearch extends React.Component { this.ref.current.focus(); } - onExited() { - this.setState({searchResults: []}); - } - clearValue() { this.setState( { @@ -136,7 +131,6 @@ export default class DocSearch extends React.Component { closeOnOutside onHide={this.onClose} onEntered={this.onEntered} - onExited={this.onExited} show={this.state.show} position={'right'} >