Skip to content

Commit 1f04181

Browse files
authored
Merge pull request #285 from fcollonval/patch-1
2 parents dc6bbaa + 310dd31 commit 1f04181

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/widgets/src/docklayout.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ export class DockLayout extends Layout {
346346
this._root = Private.realizeAreaConfig(
347347
mainConfig,
348348
{
349-
createTabBar: () => this._createTabBar(),
349+
// Ignoring optional `document` argument as we must reuse `this._document`
350+
createTabBar: (document?: Document | ShadowRoot) =>
351+
this._createTabBar(),
350352
createHandle: () => this._createHandle()
351353
},
352354
this._document

0 commit comments

Comments
 (0)