scrollIntoView bug solved

This commit is contained in:
anovazzi1 2023-02-24 17:37:04 -03:00
commit 3e59c9f820

View file

@ -34,6 +34,7 @@ export default function Chat({flow, reactFlowInstance }) {
console.log(flow.chat) console.log(flow.chat)
},[flow]) },[flow])
useEffect(()=>{ useEffect(()=>{
if(ref.current)
ref.current.scrollIntoView({behavior: 'smooth'}); ref.current.scrollIntoView({behavior: 'smooth'});
}, [chatHistory]) }, [chatHistory])
function validateNodes(){ function validateNodes(){