From 59812a09eb69cbf12407206381f4c214987b1efd Mon Sep 17 00:00:00 2001
From: Jack Henahan <jhenahan@me.com>
Date: Tue, 3 Apr 2018 07:28:12 -0400
Subject: Clear search string on hide for #781 (#789)

---
 haddock-api/resources/html/js-src/quick-jump.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'haddock-api/resources/html/js-src/quick-jump.tsx')

diff --git a/haddock-api/resources/html/js-src/quick-jump.tsx b/haddock-api/resources/html/js-src/quick-jump.tsx
index 12270372..e64dae0b 100644
--- a/haddock-api/resources/html/js-src/quick-jump.tsx
+++ b/haddock-api/resources/html/js-src/quick-jump.tsx
@@ -151,7 +151,7 @@ class QuickJump extends Component<QuickJumpProps, QuickJumpState> {
   }
 
   hide() {
-    this.setState({ isVisible: false });
+    this.setState({ isVisible: false, searchString: '' });
   }
 
   show() {
@@ -417,4 +417,4 @@ export function init(docBaseUrl?: string, showHide?: (action: () => void) => voi
 }
 
 // export to global object
-(window as any).quickNav = { init: init };
\ No newline at end of file
+(window as any).quickNav = { init: init };
-- 
cgit v1.2.3

