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(NcReferenceWidget): do not try to render widget when there is no widget #5485

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Apr 11, 2024

☑️ Resolves

NcReferenceWidget always tries to render the widget into ref="customWidget", but ref="customWidget" exists only when there is a custom widget (reference && hasCustomWidget), for example, if the widget is not registered yet there is no div to render the widget.

It doesn't look like a bug for the end user, but spams with errors on the console.

image

@ShGKme ShGKme added bug Something isn't working feature: richtext Related to the richtext component labels Apr 11, 2024
@ShGKme ShGKme added this to the 8.11.2 milestone Apr 11, 2024
@ShGKme ShGKme requested a review from juliusknorr April 11, 2024 10:42
@ShGKme ShGKme self-assigned this Apr 11, 2024
@ShGKme ShGKme changed the title fix(widget): do not try to render widget when there is no widget fix(NcReferenceWidget): do not try to render widget when there is no widget Apr 11, 2024
@ShGKme ShGKme force-pushed the fix/widgets--append-child-to-non-existing-widget branch from bd6095f to 220b64e Compare April 11, 2024 10:42
@Antreesy Antreesy modified the milestones: 8.11.2, 8.11.3 Apr 11, 2024
…widget

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@Antreesy Antreesy force-pushed the fix/widgets--append-child-to-non-existing-widget branch from 220b64e to f156a21 Compare April 12, 2024 07:28
@Antreesy Antreesy enabled auto-merge April 12, 2024 07:29
@Antreesy
Copy link
Contributor

Rebased fot Cypress fix

@Antreesy Antreesy merged commit 87631ef into master Apr 12, 2024
18 checks passed
@Antreesy Antreesy deleted the fix/widgets--append-child-to-non-existing-widget branch April 12, 2024 07:30
@Antreesy
Copy link
Contributor

/backport to next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature: richtext Related to the richtext component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants