chore (client): trim entered strings in search box

This commit is contained in:
naskya 2024-03-27 13:01:29 +09:00
parent d37c375e5d
commit 45a20bc63a
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -142,6 +142,10 @@ function done(canceled: boolean, result?: searchQuery) {
}
function search() {
searchWords.value = searchWords.value.trim();
searchUsers.value = searchUsers.value.trim();
searchRange.value = searchRange.value.trim();
if (
searchWords.value === "" &&
searchUsers.value === "" &&
@ -160,6 +164,8 @@ function search() {
}
function lookup() {
searchWords.value = searchWords.value.trim();
if (searchWords.value === "") return;
done(false, {