From 398478e575b768ac78b7c5e5a9197f062246d7dc Mon Sep 17 00:00:00 2001 From: chfhtw Date: Mon, 3 Nov 2025 11:36:10 +0100 Subject: [PATCH] searchbar submit button --- public/js/components/searchbar/searchbar.js | 34 ++++++++++++++++----- system/phrasesupdate.php | 20 ++++++++++++ 2 files changed, 47 insertions(+), 7 deletions(-) diff --git a/public/js/components/searchbar/searchbar.js b/public/js/components/searchbar/searchbar.js index 1c2747e3c..e11a3111d 100644 --- a/public/js/components/searchbar/searchbar.js +++ b/public/js/components/searchbar/searchbar.js @@ -23,7 +23,17 @@ export default { mergedStudent, mergedPerson }, - props: [ "searchoptions", "searchfunction" ], + props: { + searchoptions: { + type: Object, + required: true + }, + searchfunction: { + type: Function, + required: true + }, + showBtnSubmit: Boolean + }, provide() { return { query: Vue.computed(() => this.lastQuery) @@ -105,9 +115,19 @@ export default { type="button" class="searchbar_input_clear btn btn-outline-secondary" @click="clearInput" + @focusin.stop > +