Skip to content

igx-splitter produces ExpressionChangedAfterItHasBeenCheckedError if any condition is added to panes #15978

@pmoleri

Description

@pmoleri

Description

igx-splitter produces ExpressionChangedAfterItHasBeenCheckedError if any condition is added to panes

  • igniteui-angular version: 19.1.4
  • browser: any

Steps to reproduce

  1. 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>
  2. Run it (or reload, avoid hot reload)
  3. 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
Image

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions