From 717564e0a9109049ec98a23d2726c1a877c207da Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 22 Feb 2022 15:53:53 +0100 Subject: [PATCH] wip #5120 @1 --- resources/js/search.js | 10 +++++----- resources/views/components/search.blade.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/js/search.js b/resources/js/search.js index a881dba..ef52c55 100644 --- a/resources/js/search.js +++ b/resources/js/search.js @@ -14,8 +14,7 @@ export default () => ({ prefix: true, // Allow partial matches processTerm: (term, _fieldName) => term.length < 3 ? null : term.toLowerCase() }, - }, - query: '', // The search query + }, query: '', // The search query medialibrary: '', // Holds URL of the media library that is passed in from the component async init() { @@ -55,10 +54,11 @@ export default () => ({ return []; } - // console.log(`search results: ${this.query}`); - // console.table(this.miniSearch.search(this.query)) + return this.miniSearch.search(this.query); + }, - return this.miniSearch.search(this.query) + get showResults() { + return false; }, get resultCount() { diff --git a/resources/views/components/search.blade.php b/resources/views/components/search.blade.php index bffa838..5c8b45c 100644 --- a/resources/views/components/search.blade.php +++ b/resources/views/components/search.blade.php @@ -63,7 +63,7 @@ x-show="searchOpen" x-transition:enter.opacity.duration.500ms.delay.1500ms x-transition:leave.opacity.delay.50ms> -
+

-- 2.39.5