chore (client): trim entered strings in search box
This commit is contained in:
parent
d37c375e5d
commit
45a20bc63a
1 changed files with 6 additions and 0 deletions
|
@ -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, {
|
||||
|
|
Loading…
Reference in a new issue