From 89313450dc71d0a45cc3da16cf695849a9b51b07 Mon Sep 17 00:00:00 2001 From: Pixelastic Date: Mon, 5 Nov 2018 09:50:29 +0100 Subject: [PATCH] Disable links with handleSelected is defined --- scripts/playground.html | 13 +++--- scripts/test-watch | 1 + src/lib/DocSearch.js | 98 ++++++++++++++++++----------------------- src/lib/templates.js | 2 +- 4 files changed, 52 insertions(+), 62 deletions(-) diff --git a/scripts/playground.html b/scripts/playground.html index cc8cf633..72b6817c 100644 --- a/scripts/playground.html +++ b/scripts/playground.html @@ -15,12 +15,7 @@
- -
-
-
-
- +
@@ -30,11 +25,15 @@ docsearch({ apiKey: '25626fae796133dc1e734c6bcaaeac3c', indexName: 'docsearch', - inputSelector: '#q,#z', + inputSelector: '#q', + // handleSelected(input, event, suggestion) { + // console.info("You selected", suggestion); + // }, debug: true // Set debug to true if you want to inspect the dropdown });