Skip to content

fix(CodeModal): Fix ResizeObserver loop completed with undelivered notifications issue#688

Merged
rebeccaalpert merged 1 commit intopatternfly:mainfrom
rebeccaalpert:code-modal-resize
Oct 20, 2025
Merged

fix(CodeModal): Fix ResizeObserver loop completed with undelivered notifications issue#688
rebeccaalpert merged 1 commit intopatternfly:mainfrom
rebeccaalpert:code-modal-resize

Conversation

@rebeccaalpert
Copy link
Member

@rebeccaalpert rebeccaalpert commented Sep 25, 2025

This only seems visible when running code locally fwiw - shows up in runtime error overlay. You don't see it in Surge. Resize or zoom into an example with the code modal to fire the issue. (I used this one - open the code modal by clicking the attachment label in the existing message: http://localhost:8006/patternfly-ai/chatbot/messages/demo#attach-via-upload-button-in-message-bar).

When you use CodeEditor by itself, it has a container with predictable dimensions. I suspect this breaks down inside the PF modal since I've only seen it here. This moves resize handling/detection to where we have control over it, which seems to stop the issue.

The error message was showing up on the overlay panel, but doesn't seem harmful to me (interrupting infinite loop). Karthik from RHDH was able to link this and verify that this fixes the issue for him.

@patternfly-build
Copy link

patternfly-build commented Sep 25, 2025

…tifications issue

This moves resize handling/detection to where we have control over it. We are able to put more control over it so it doesn't loop infinitely the way putting a code editor in a modal seems to do.
@rebeccaalpert rebeccaalpert marked this pull request as ready for review September 29, 2025 18:38
@rebeccaalpert rebeccaalpert changed the title WIP: fix(CodeModal): Fix ResizeObserver loop completed with undelivered notifications issue fix(CodeModal): Fix ResizeObserver loop completed with undelivered notifications issue Sep 29, 2025
@rebeccaalpert rebeccaalpert linked an issue Sep 29, 2025 that may be closed by this pull request
Copy link
Contributor

@karthikjeeyar karthikjeeyar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have verified the changes in RHDH by locally linking to the PR changes.

image

/approve
/lgtm

@rebeccaalpert rebeccaalpert merged commit 835dfd5 into patternfly:main Oct 20, 2025
7 checks passed
@github-actions
Copy link

🎉 This PR is included in version 6.5.0-prerelease.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

rebeccaalpert added a commit to rebeccaalpert/virtual-assistant that referenced this pull request Oct 24, 2025
…tifications issue (patternfly#688)

This moves resize handling/detection to where we have control over it. We are able to put more control over it so it doesn't loop infinitely the way putting a code editor in a modal seems to do.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When resizing or zooming into CodeModal, get error

4 participants