diff options
author | Jack Henahan <jhenahan@me.com> | 2018-04-03 07:28:12 -0400 |
---|---|---|
committer | Alexander Biehl <alexbiehl@gmail.com> | 2018-04-03 13:28:12 +0200 |
commit | 59812a09eb69cbf12407206381f4c214987b1efd (patch) | |
tree | 761cb6680b9e9503639d601aad7353d0ca4ab08f /haddock-api/resources/html/js-src | |
parent | 37e93411ef8ee673eebd6c56b8db3f2e851572c9 (diff) |
Clear search string on hide for #781 (#789)
Diffstat (limited to 'haddock-api/resources/html/js-src')
-rw-r--r-- | haddock-api/resources/html/js-src/quick-jump.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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 }; |