fix(web): keep typed text when a question option is clicked #12577
Mergedcestercian(GitHub profile, opens in a new tab)merged 3 commits into
main fromrefs/pull/12577/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- apps/web/src/components/chat/ChatComposer.tsx lines 3088 to 3092Resolvedby cestercian(GitHub profile, opens in a new tab)@@ -3080,3 +3080,8 @@30803080 useEffect(() => {30813081 const nextCustomAnswer = activePendingProgress?.customAnswer;30823082 if (typeof nextCustomAnswer !== "string") {3083+ // The question is gone and the editor shows the thread draft again. The3084+ // ref still holds the last answer text, and Send reads the ref.3085+ if (lastSyncedPendingInputRef.current !== null) {3086+ promptRef.current = prompt;3087+ }
github-actions[bot](GitHub profile, opens in a new tab) removed labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
juliusmarminge merged thise367256
juliusmarminge closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed