Skip to content

Package makes use of deprecated DOMNodeInserted event. #380

Description

@thomassleeman

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?

Activity

  1. nick-liggett-smt commented on Oct 30, 2023

    @nick-liggett-smt

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

  2. LucasBassetti commented on Sep 26, 2026

    @LucasBassetti
    Owner

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions