scrollIntoView bug solved
This commit is contained in:
parent
48f179883f
commit
3e59c9f820
1 changed files with 2 additions and 1 deletions
|
|
@ -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(){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue