Fix: Prevents incorrect input commitment when selecting IME candidates (#146)

* fix: resolve race condition during IME composition

* Create tricky-ravens-cheer.md

* fix format

---------

Co-authored-by: BaiRuic <brc730@outlook.com>
Co-authored-by: Marcus Schiesser <marcus.schiesser@googlemail.com>
This commit is contained in:
Thuc Pham
2025-06-25 14:44:14 +07:00
committed by GitHub
parent e0329a1ba4
commit 84a67d3743
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@llamaindex/chat-ui': patch
---
Fix: Prevents incorrect input commitment when selecting IME candidates
+3 -1
View File
@@ -159,7 +159,9 @@ function ChatInputField(props: ChatInputFieldProps) {
onChange={handleInputChange}
onKeyDown={handleKeyDown}
onCompositionStart={() => setIsComposing(true)}
onCompositionEnd={() => setIsComposing(false)}
onCompositionEnd={() => {
setTimeout(() => setIsComposing(false), 100)
}}
spellCheck={false}
/>
)