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)
|
||||
},[flow])
|
||||
useEffect(()=>{
|
||||
if(ref.current)
|
||||
ref.current.scrollIntoView({behavior: 'smooth'});
|
||||
}, [chatHistory])
|
||||
function validateNodes(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue