fix(app): preserve composer caret after requests (#36503)

This commit is contained in:
Luke Parker
2026-07-14 10:04:11 +10:00
committed by GitHub
parent 449c64928b
commit a625d35f7b
3 changed files with 71 additions and 2 deletions
+3 -1
View File
@@ -633,7 +633,9 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
const isImeComposing = (event: KeyboardEvent) => event.isComposing || composing() || event.keyCode === 229
const handleBlur = () => {
savedCursor = currentCursor()
const cursor = currentCursor()
savedCursor = cursor
if (cursor !== null && cursor !== prompt.cursor()) prompt.set(prompt.current(), cursor)
closePopover()
setComposing(false)
}