fix: firefox input height issue

This commit is contained in:
Timothy Jaeryang Baek
2025-03-14 12:50:33 +00:00
parent 4b1899bfca
commit 74da9c4e54
2 changed files with 12 additions and 10 deletions
+4 -3
View File
@@ -45,9 +45,10 @@
if (inputValue.length > 500) {
filteredPrompts = [];
} else {
const newFilteredPrompts = inputValue.trim()
? fuse.search(inputValue.trim()).map((result) => result.item)
: sortedPrompts;
const newFilteredPrompts =
inputValue.trim() && fuse
? fuse.search(inputValue.trim()).map((result) => result.item)
: sortedPrompts;
// Compare with the oldFilteredPrompts
// If there's a difference, update array + version