mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
fix: preserve forwardRef in ChatView for ref compatibility
This commit is contained in:
parent
48216d3b4e
commit
36a46de356
1 changed files with 3 additions and 3 deletions
|
|
@ -2164,12 +2164,12 @@ const ChatViewInner: React.ForwardRefRenderFunction<ChatViewRef, ChatViewProps>
|
|||
|
||||
const ChatViewWithRef = forwardRef(ChatViewInner)
|
||||
|
||||
const ChatView: React.FC<ChatViewProps> = (props) => {
|
||||
const ChatView = forwardRef<ChatViewRef, ChatViewProps>((props, ref) => {
|
||||
return (
|
||||
<DraftPersistenceProvider>
|
||||
<ChatViewWithRef {...props} />
|
||||
<ChatViewWithRef {...props} ref={ref} />
|
||||
</DraftPersistenceProvider>
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
export default ChatView
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue