Add search form submit #32 #45

Merged
jakob.scheid merged 20 commits from feature/search-form-submit into main 2026-05-14 11:29:19 +02:00
2 changed files with 17 additions and 3 deletions
Showing only changes of commit 399d7caabc - Show all commits
+11 -1
View File
@@ -14,9 +14,19 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
<script setup>
const searchQuery = defineModel();
</script>
<template>
<div class="search-wrapper">
<input type="search" name="search" placeholder="Search..." required />
<input
v-model="searchQuery"
type="search"
name="search"
placeholder="Search..."
required
/>
<button type="submit" class="search-button">Search</button>
</div>
</template>
+6 -2
View File
@@ -15,7 +15,11 @@ limitations under the License.
-->
<script setup>
import Searchbar from '../features/search/components/Searchbar.vue'
import Searchbar from '../features/search/components/Searchbar.vue';
import { ref } from 'vue';
const searchQuery = ref('');
</script>
<template>
@@ -27,7 +31,7 @@ import Searchbar from '../features/search/components/Searchbar.vue'
</header>
<form class="search-form">
<Searchbar />
<Searchbar v-model="searchQuery" ref="searchbar" />
</form>
</template>