igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

igx-tabs-group gets error when ngIf is applied to it.

Open tkiryu opened this issue 8 years ago • 2 comments

Steps to reproduce

  1. Go to https://stackblitz.com/edit/igx-tabs-group-ngif-issue
  2. Open a browser console.

Result

An error is thrown and tab layout is off.

ERROR TypeError: Cannot read property 'toArray' of undefined at IgxTabsGroupComponent.get [as index] (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/[email protected]/tabs/tabs-group.component.js:52) at IgxTabsGroupComponent.get [as labelledBy] (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/[email protected]/tabs/tabs-group.component.js:22) at Object.eval [as updateRenderer] (ng:///AppModule/TabsSample1Component.ngfactory.js:18) at Object.debugUpdateRenderer [as updateRenderer] (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:14773) at checkAndUpdateView (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:13887) at callViewAction (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:14233) at execEmbeddedViewsAction (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:14191) at checkAndUpdateView (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:13883) at callViewAction (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:14233) at execComponentViewsAction (igx-tabs-group-ngif-issue.stackblitz.io/turbo_modules/@angular/[email protected]/bundles/core.umd.js:14165)

image

Expected result

No error is thrown.

tkiryu avatar May 25 '18 11:05 tkiryu

This issue is fixed in version 6.0.1

sboykova avatar Jun 18 '18 08:06 sboykova

@sboykova thanks!

tkiryu avatar Jun 18 '18 09:06 tkiryu