refactor(web): search people ()

* refactor: search people

* fix: test

* fix: timeout

* fix: callbacks

* fix: simplify

* remove unused var

* refactor: rename file

* fix: focus when deleting last character

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
martin 2024-04-29 23:38:15 +02:00 committed by GitHub
parent 72ce81f0c2
commit 5722c830ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 207 additions and 267 deletions
web/src/lib/utils

View file

@ -81,6 +81,6 @@ export function navigate<T extends Route>(change: T): Promise<void> {
export const clearQueryParam = async (queryParam: string, url: URL) => {
if (url.searchParams.has(queryParam)) {
url.searchParams.delete(queryParam);
await goto(url);
await goto(url, { keepFocus: true });
}
};