fix(web): chat content scroll

This commit is contained in:
zhaoying
2026-03-19 10:51:33 +08:00
parent 91589c1497
commit b42815ee7a
2 changed files with 5 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ const RbMarkdown: FC<RbMarkdownProps> = ({
/** Sync edit content when external content changes */
useEffect(() => {
setEditContent(content)
setEditContent(prev => prev !== content ? content : prev)
}, [content])
/** Handle textarea content changes and trigger callback */