Skip to content

Commit 5d7b056

Browse files
committed
chore(*): Fixing tabs selectedIndex two-way binding
1 parent 5759289 commit 5d7b056

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

projects/igniteui-angular/src/lib/grids/grid/grid.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ export class IgxGridComponent extends IgxGridBaseComponent implements IGridDataB
333333
set groupingExpansionState(value) {
334334
this._groupingExpandState = cloneArray(value);
335335
this.groupingExpansionStateChange.emit(this._groupingExpandState);
336-
this.cdr.detectChanges();
336+
this.notifyChanges();
337337
}
338338

339339
/**

projects/igniteui-angular/src/lib/tabs/tabs.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ export class IgxTabsComponent implements IgxTabsBase, AfterViewInit, OnDestroy {
8282
} else {
8383
this._selectedIndex = newIndex;
8484
}
85-
this.selectedIndexChange.emit(this._selectedIndex);
8685
}
8786
}
8887

@@ -383,6 +382,7 @@ export class IgxTabsComponent implements IgxTabsBase, AfterViewInit, OnDestroy {
383382
// if there is no new selected tab hide the selection indicator
384383
this.hideIndicator();
385384
}
385+
this.selectedIndexChange.emit(this._selectedIndex);
386386
}
387387

388388
private performDeselection(oldTab: IgxTabItemBase): void {

0 commit comments

Comments
 (0)