Description
Description
igx-splitter
produces ExpressionChangedAfterItHasBeenCheckedError if any condition is added to panes
- igniteui-angular version: 19.1.4
- browser: any
Steps to reproduce
- Add a splitter with a conditional pane, like in the following snippet:
<igx-splitter style="height: 100vh;" [style.width]="'100%'"> <igx-splitter-pane>1</igx-splitter-pane> @if (someCondition) { <igx-splitter-pane>2</igx-splitter-pane> } </igx-splitter>
- Run it (or reload, avoid hot reload)
- Check the devtools console
Result
throws as unhandled
NG0100 ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value for 'order': 'undefined'. Current value: '2'.
Note that the "if" condition never changes. The bare existence of the condition makes it fail.
Expected result
No errors.
Attachments
https://stackblitz.com/edit/ix2xmku4?file=src%2Fapp%2Fsplitter-horizontal-sample%2Fsplitter-horizontal-sample.component.html