Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: properly initialize HTML value when using RTE in dialog #6638

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

sissbruecker
Copy link
Contributor

Delays setting HTML value into beforeClientResponse to fix conversion of the HTML value into the Delta value.

I have not fully identified the root cause, but there seems to be some timing issue when using RTE in a dialog that is auto-added to the UI (which also uses beforeClientResponse). The regression was introduced with #4538, before that RTE was also using beforeClientResponse to set the HTML value. Besides, with the new behavior the dangerouslySetHtmlValue JS call is only run once instead of 3 times as it is now.

Fixes #6636

Copy link

sonarcloud bot commented Sep 17, 2024

@web-padawan web-padawan merged commit 2e506cf into main Sep 17, 2024
5 checks passed
@web-padawan web-padawan deleted the fix/rte-dialog-initial-value branch September 17, 2024 07:48
vaadin-bot pushed a commit that referenced this pull request Sep 17, 2024
web-padawan pushed a commit that referenced this pull request Sep 17, 2024
vursen pushed a commit that referenced this pull request Sep 17, 2024
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.

RichTextEditor looses newlines when placed inside Dialog
3 participants