mirror of
https://github.com/LukeSmithxyz/based.cooking.git
synced 2025-01-22 00:31:43 +00:00
trim whitespace in searchString
This commit is contained in:
parent
6519daeaef
commit
582ff71117
@ -26,7 +26,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
|
|
||||||
search.addEventListener('input', e => {
|
search.addEventListener('input', e => {
|
||||||
// grab search input value
|
// grab search input value
|
||||||
const searchText = e.target.value.toLowerCase()
|
const searchText = e.target.value.toLowerCase().trim()
|
||||||
|
|
||||||
const hasFilter = searchText.length > 0;
|
const hasFilter = searchText.length > 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user