Issue with FreeText Annotations – Deprecated DOMNodeInserted Mutation Event

WebViewer Version: 10.12

Is your issue related to a front-end framework? - yes
Is your issue related to annotations? - yes

Please give a brief summary of your issue:
Issue with FreeText Annotations – Deprecated DOMNodeInserted Mutation Event

Please describe your issue and provide steps to reproduce it:
Good day,

There is a year-old thread discussing the same problem.
And I am now encountering the same issue when working with FreeText Annotations. However, when I switch to Rectangle or Redact annotations, everything works without any problems.


I was wondering if the team plans to fix this issue in future releases.

Best regards,
Maksym

1 Like

Hello, I'm AiRon, an automated tech support bot 🤖
While you wait for one of our customer support representatives, I can help you with your question.


The issue you're encountering with FreeText Annotations likely stems from the deprecated `DOMNodeInserted` event, which can cause unexpected behavior in modern web environments. This event is part of the older Mutation Events API, which has been replaced by the more performant MutationObserver API. The complication arises when FreeText annotations rely on these older events for updates or changes.


Some things you can try:

  • Consider updating your implementation to use MutationObserver instead of relying on deprecated events.

  • Check if there are any available updates or patches for the WebViewer that might address this issue.

  • Try isolating the issue by creating a minimal example to confirm that the problem is indeed related to the deprecated event.

  • Ensure that your FreeText annotation handling does not directly depend on deprecated browser events.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

1 Like

Hi there,

The development team is aware of the deprecation and it is on our radar to be addressed.

The warning is caused by a third party dependency (Quill), but based on testing the deprecated event should not impact WebViewer functionality.

Quill recently released a new major version which removes use of this deprecated event and we’re evaluating the impacts of upgrading. We don’t have a firm timeline at this time.

Best regards,
Kevin

1 Like