fix: fix the empty input with ⌘+Down (#1977)

This commit is contained in:
Yingjie He
2025-04-01 10:20:13 -07:00
committed by GitHub
parent 759d6368e5
commit 3c972b2dad
2 changed files with 72 additions and 2 deletions
+4
View File
@@ -90,6 +90,10 @@ export default function Input({
}
}
if (newIndex == historyIndex) {
return;
}
// Update index and value
setHistoryIndex(newIndex);
if (newIndex === -1) {