Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

fxHide or fxShow do not work in <ng-container>  #1262

@beleta

Description

@beleta

Bug Report

When using te directives fxHide or fxShow in a element inside a body template of a PrimeNG Table like this:

<table>
  <tr *pTemplate="'body'" ...>
    <td>...</td>
   ...
  <ng-container fxHide.lt-md>
     <td>...</td>
    ....
     <td>...</td>
  </ng-container>   
</table>

The following error is shown:

ERROR TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at Function.from (<anonymous>)
    at DefaultShowHideDirective.ngAfterViewInit (show-hide.ts:70)

What is the expected behavior?

No error shown.

What is the current behavior?

The error is shown.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

@angular/core: 9.1.7
@angular/cdk: 9.2.4
@angular/flex-layout: 9.0.0-beta.31

Metadata

Metadata

Assignees

Labels

P1Urgent issue that should be resolved before the next re-leasebugneeds: demo

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions