Skip to content

Conversation

@seer-by-sentry
Copy link
Contributor

Fixes ECENCY-NEXT-WMH. The issue was that: ChunkLoadError for react-tweet causes DOM instability, leading applyImageZoom to access parentNode on a detached element.

  • Added checks to ensure image elements are still connected to the DOM before processing to prevent errors.
  • Implemented null checking for parentNode to avoid issues in iOS Safari.
  • Added try-catch blocks to handle potential errors during DOM access and manipulation, logging warnings instead of crashing.
  • Re-verified element connection before replacing it in the DOM.
  • Added parentElement verification before attempting manipulation

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 36411

Not quite right? Click here to continue debugging with Seer.

@feruzm feruzm merged commit a5bab3f into develop Oct 17, 2025
@feruzm feruzm deleted the seer/image-zoom-enhancer-dom-safety branch October 17, 2025 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants