Skip to content

Commit

Permalink
fix: use constructor when creating default layout element (#23)
Browse files Browse the repository at this point in the history
Co-authored-by: Albin Berglund <[email protected]>
  • Loading branch information
blidblid and blidblid authored Mar 14, 2023
1 parent 75c913c commit 229843c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libs/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@berg-layout/angular",
"version": "5.0.5",
"version": "5.0.6",
"devDependencies": {
"@berg-layout/testing": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion libs/core/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@berg-layout/core",
"version": "5.0.5"
"version": "5.0.6"
}
2 changes: 1 addition & 1 deletion libs/core/src/lib/components/panel/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import { validateOutputBindingMode, validateSlot } from './panel-util-private';

export class BergPanelElement extends WebComponent<BergPanelInputs> {
private backdropElement: HTMLElement;
private layout = document.createElement('berg-layout') as BergLayoutElement;
private layout = new BergLayoutElement();

private timeouts: ReturnType<typeof setTimeout>[] = [];

Expand Down
2 changes: 1 addition & 1 deletion libs/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@berg-layout/react",
"version": "5.0.5",
"version": "5.0.6",
"devDependencies": {
"@berg-layout/testing": "*"
}
Expand Down

0 comments on commit 229843c

Please sign in to comment.