Skip to content

Commit

Permalink
Fix renderRoot override
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Mar 24, 2020
1 parent abea741 commit b175dca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "component-register",
"description": "Basic Wrapper around Web Components",
"version": "0.7.0",
"version": "0.7.1",
"author": "Ryan Carniato",
"license": "MIT",
"readmeFilename": "README.md",
Expand Down
2 changes: 1 addition & 1 deletion src/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function getCurrentElement() {
}

export function noShadowDOM() {
currentElement.renderRoot = currentElement;
Object.defineProperty(currentElement, "renderRoot", { value: currentElement });
}

export function createElementType<T>(
Expand Down

0 comments on commit b175dca

Please sign in to comment.