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 undefined document.body #2070

Merged
merged 2 commits into from
Sep 6, 2023
Merged

Conversation

fabiofdsantos
Copy link
Contributor

If we e.g. import "@lion/ui/define/lion-dialog.js";, document.body can be null.

document.body is a read-only property that gets set by the browser when it parses the HTML document.

As it's used only inside __keepBodySize, no need to declare supportsCSSTypedObject before.

@changeset-bot
Copy link

changeset-bot bot commented Sep 6, 2023

🦋 Changeset detected

Latest commit: ed5e937

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@lion/ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@CLAassistant
Copy link

CLAassistant commented Sep 6, 2023

CLA assistant check
All committers have signed the CLA.

@gerjanvangeest
Copy link
Member

Looks fine to me, can you add a changeset (npm run changeset) to get the change added to the changelog?

@fabiofdsantos
Copy link
Contributor Author

Looks fine to me, can you add a changeset (npm run changeset) to get the change added to the changelog?

@gerjanvangeest Done! Thanks! 👍🏻

@gerjanvangeest gerjanvangeest merged commit ebe13e1 into ing-bank:master Sep 6, 2023
4 checks passed
@fabiofdsantos fabiofdsantos deleted the patch-1 branch September 6, 2023 11:35
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.

3 participants