Skip to content

Commit

Permalink
Listen for event in searchbar
Browse files Browse the repository at this point in the history
  • Loading branch information
ttrig committed Apr 3, 2024
1 parent 1b2972b commit b59acba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Assertion in 'assertGraphqlSent' helper.
- Loading spinner.
- Test helper class `ServiceTestCase`.
- Listen for event in searchbar.

### Removed
- **BREAKING**: Database host maintenance feature.
Expand Down
1 change: 1 addition & 0 deletions resources/views/components/layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class="p-2 w-full outline-none text-black dark:text-white bg-white dark:bg-gray-
x-model="query"
@keyup.debounce="$dispatch('searchbar', { query })"
@keydown.escape="query = ''"
@searchbar-set.window="query = $event.detail?.query || ''"
/>
</div>
@endisset
Expand Down

0 comments on commit b59acba

Please sign in to comment.