Skip to content

Commit 5c2b7bf

Browse files
authored
Merge pull request #8 from WTW-IM/default-view
Update: adding a defaultView to the shadow root
2 parents 34c89a5 + f389fa9 commit 5c2b7bf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ReactHTMLElement.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ interface LooseShadowRoot extends ShadowRoot {
88
function retargetReactEvents(container: Node, shadow: LooseShadowRoot): void {
99
Object.defineProperty(container, 'ownerDocument', { value: shadow });
1010
/* eslint-disable no-param-reassign */
11+
shadow.defaultView = window;
1112
shadow.createElement = (
1213
tagName: string,
1314
options?: ElementCreationOptions,

0 commit comments

Comments
 (0)