Skip to content

Commit

Permalink
Merge branch 'main' into fix-autofocus-drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget authored Jul 24, 2024
2 parents 52ec62b + 6933036 commit 64a0f07
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
},
"devDependencies": {
"@builder.io/eslint-plugin-mitosis": "^0.0.16",
"@builder.io/mitosis": "^0.3.12",
"@builder.io/mitosis-cli": "^0.3.12",
"@builder.io/mitosis": "^0.3.13",
"@builder.io/mitosis-cli": "^0.3.13",
"@react-docgen/cli": "^2.0.3",
"cpr": "3.0.1",
"cssnano": "^7.0.4",
Expand Down
6 changes: 5 additions & 1 deletion packages/components/src/components/page/page.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default function DBPage(props: DBPageProps) {

onInit(() => {
if (
typeof window !== 'undefined' &&
document &&
(props.documentOverflow === 'hidden' ||
(props.variant === 'fixed' &&
Expand All @@ -47,7 +48,10 @@ export default function DBPage(props: DBPageProps) {
});

onUnMount(() => {
if (document.documentElement.classList.contains('db-page-document')) {
if (
typeof window !== 'undefined' &&
document.documentElement.classList.contains('db-page-document')
) {
// remove document styles set by this
document.documentElement.classList.remove('db-page-document');
}
Expand Down

0 comments on commit 64a0f07

Please sign in to comment.