Skip to content

Commit 35cfc42

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Mark for check when order is set to reflect host bind.
1 parent e6141b9 commit 35cfc42

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

projects/igniteui-angular/src/lib/splitter/splitter-pane/splitter-pane.component.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, HostBinding, Input, ElementRef, Output, EventEmitter, booleanAttribute } from '@angular/core';
1+
import { Component, HostBinding, Input, ElementRef, Output, EventEmitter, booleanAttribute, ChangeDetectorRef } from '@angular/core';
22

33
/**
44
* Represents individual resizable/collapsible panes.
@@ -22,6 +22,7 @@ import { Component, HostBinding, Input, ElementRef, Output, EventEmitter, boolea
2222
export class IgxSplitterPaneComponent {
2323
private _minSize: string;
2424
private _maxSize: string;
25+
private _order!: number;
2526

2627
/**
2728
* @hidden @internal
@@ -102,7 +103,13 @@ export class IgxSplitterPaneComponent {
102103

103104
/** @hidden @internal */
104105
@HostBinding('style.order')
105-
public order!: number;
106+
public get order() {
107+
return this._order;
108+
}
109+
public set order(val) {
110+
this._order = val;
111+
this.cdr.markForCheck();
112+
}
106113

107114
/**
108115
* @hidden @internal
@@ -226,7 +233,7 @@ export class IgxSplitterPaneComponent {
226233
private _collapsed = false;
227234

228235

229-
constructor(private el: ElementRef) { }
236+
constructor(private el: ElementRef, private cdr: ChangeDetectorRef) { }
230237

231238
/**
232239
* Toggles the collapsed state of the pane.

0 commit comments

Comments
 (0)