LucasBassetti / react-simple-chatbot

:speech_balloon: Easy way to create conversation chats
https://lucasbassetti.com.br/react-simple-chatbot/
MIT License
1.73k stars 598 forks source link

Package makes use of deprecated DOMNodeInserted event. #380

Open thomassleeman opened 11 months ago

thomassleeman commented 11 months ago

Describe the bug It looks like react-simple-chatbot uses the deprecated event listener DOMNodeInserted to scroll downwards each time a new message appears on screen. Currently this prompts the following warning in chrome:

[Deprecation] Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

Are there any plans to update this?

nick-liggett-smt commented 11 months ago

I'm getting the same thing. Curios what the plan is for this?