You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On ChatBot.jsx you are attaching a scroll to button function on the event 'DOMNodeInserted' of the chatBot element.
That created some problem for us when we used custom components with ReactTooltip for instance, so the first time the tooltip created the whole chatbot would scroll to the bottom.
Eventually wrote a patch in our custom step to stopPropagation when such event triggered and it solved the problem.
I would try to find a different solution for what you tried to do there.
On ChatBot.jsx you are attaching a scroll to button function on the event 'DOMNodeInserted' of the chatBot element.
That created some problem for us when we used custom components with ReactTooltip for instance, so the first time the tooltip created the whole chatbot would scroll to the bottom.
Eventually wrote a patch in our custom step to stopPropagation when such event triggered and it solved the problem.
I would try to find a different solution for what you tried to do there.
ocherfas, How are you handling the scroll to bottom?
Can you share?
Can some share on how to handle scrolling?,I have a custom component for which I don't want to scroll to the buttom of the chatbot.
This is fixed in #392: autoscroll now uses a MutationObserver instead of the removed DOMNodeInserted event. A new message always scrolls to the bottom, and other DOM changes (tooltips, ripples, content loaded in custom steps) only scroll when the user hasn't scrolled up.
It will be part of the next release. Closing, thanks for reporting!
Activity
[-]Chatbot scroll on custom strp[/-][+]Chatbot scroll on custom step[/+]LucasBassetti commentedon Aug 24, 2018
Hi,
Thanks for the advice! If you have some good solution to that please let me know. 👍
GilbertMizrahi commentedon Dec 5, 2018
ocherfas, How are you handling the scroll to bottom?
Can you share?
Bharathalapati3 commentedon Feb 8, 2020
Can some share on how to handle scrolling?,I have a custom component for which I don't want to scroll to the buttom of the chatbot.
DavidC0rtes commentedon Oct 6, 2021
Hi, we encountered a similar problem, to prevent autoscroll to the last dom node this answer was helpful: https://stackoverflow.com/a/31063201
passed in
customStyleLucasBassetti commentedon Sep 26, 2026
This is fixed in #392: autoscroll now uses a
MutationObserverinstead of the removedDOMNodeInsertedevent. A new message always scrolls to the bottom, and other DOM changes (tooltips, ripples, content loaded in custom steps) only scroll when the user hasn't scrolled up.It will be part of the next release. Closing, thanks for reporting!