Skip to content

Commit

Permalink
fix(kit): Accordion fix hydration issue (#9453)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored Oct 11, 2024
1 parent 4f614b2 commit e22d2ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions projects/core/components/expand/expand.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@ export const TUI_EXPAND_LOADED = 'tui-expand-loaded';
changeDetection: ChangeDetectionStrategy.OnPush,
animations: [tuiParentAnimation],
host: {
/**
* TODO: fix later
* Be careful and thoughtful about using this attribute.
* It is intended as a last resort workaround.
* Components that break hydration should be
* considered bugs that need to be fixed.
*/
ngSkipHydration: 'true',
'[style.height.px]': 'height',
'[class._loading]': 'loading',
'[class._overflow]': 'overflow',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
*ngIf="eagerContent"
class="t-content"
>
<ng-content select="[tuiAccordionItemContent]" />
<ng-content select="[tuiAccordionItemContent]:not(ng-template)" />
</div>
</tui-expand>
</div>

0 comments on commit e22d2ba

Please sign in to comment.