fix(webui): stabilize thread during IME input

This commit is contained in:
chengyongru authored and chengyongru committed 2026-08-03 16:41:08 +08:00
1 parent ac216c3e94
commit eeecfac538
4 files changed
+73

No files matched your search

@@ -1799,6 +1799,7 @@ export function ThreadComposer({
};
const onInput: React.FormEventHandler<HTMLTextAreaElement> = (e) => {
if ((e.nativeEvent as InputEvent).isComposing) return;
const el = e.currentTarget;
el.style.height = "auto";
el.style.height = `${Math.min(el.scrollHeight, 260)}px`;