Skip to content

Commit

Permalink
fix: change display to block only if shadow dom is disable
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelOsborne committed Feb 3, 2023
1 parent 6c222e7 commit 56e1f4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lottiefiles/lottie-player",
"version": "1.7.0",
"version": "1.7.1",
"description": "Lottie animation and Telegram Sticker player web components.",
"main": "dist/lottie-player.js",
"module": "dist/lottie-player.esm.js",
Expand Down
2 changes: 1 addition & 1 deletion src/lottie-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ export class LottiePlayer extends LitElement {
}

protected createRenderRoot(): Element | ShadowRoot {
this.style.display = "block";
if (this.disableShadowDOM) this.style.display = "block";

return this.disableShadowDOM ? this : super.createRenderRoot();
}
Expand Down

0 comments on commit 56e1f4f

Please sign in to comment.