We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69e9451 commit c433d94Copy full SHA for c433d94
packages/components/src/components/post-collapsible/post-collapsible.tsx
@@ -77,7 +77,10 @@ export class PostCollapsible {
77
78
await animation.finished;
79
80
- animation.commitStyles();
+ const isVisible = this.host.offsetParent || this.host.offsetWidth || this.host.offsetHeight;
81
+ if (isVisible) {
82
+ animation.commitStyles();
83
+ }
84
85
return open;
86
}
0 commit comments