mirror of
https://github.com/run-llama/chat-ui.git
synced 2026-07-21 11:25:22 -04:00
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:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@llamaindex/chat-ui': patch
|
||||
---
|
||||
|
||||
Fix: Prevents incorrect input commitment when selecting IME candidates
|
||||
@@ -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}
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user