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

[Fullscreen] - addClass/removeClass throws TypeError: Cannot read properties of undefined (reading 'add') in shadow-root #4858

Open
ubalensi-yoobic opened this issue Dec 16, 2024 · 0 comments

Comments

@ubalensi-yoobic
Copy link

ubalensi-yoobic commented Dec 16, 2024

Screenshot 2024-12-16 at 9 57 42 am image image
Expected behavior.

The editor doesnt throw any console error when going in fullscreen mode

Actual behavior.

The editor throws a console error when going in fullscreen mode because looking up the DOM parent stack its failing on trying to add/remove a class from a shadow-root node. ( when looking up the stack to apply fr-fullscreen to each parents, make sure that the current element is of type HTMLElement.

Steps to reproduce the problem.

Setup a froala editor component inside a shadow-root DOM stack and click the "fullscreen option"

Editor version.

Latest.

OS.

Any, not related to OS

Browser.

Any, not related to browser

Recording.

I can't record for confidentialty reason, you have the screenshot of the console.error above, its enough.

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

No branches or pull requests

1 participant