Skip to content

Commit abfa67f

Browse files
authored
Merge pull request #7370 from IgniteUI/slider-two-way
fix(slider): two way bound err
2 parents 44b2675 + a053815 commit abfa67f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,8 @@ export class IgxSliderComponent implements
625625
} else {
626626
this._value = value;
627627
}
628+
629+
this._onChangeCallback(value);
628630
}
629631

630632
/**
@@ -1351,6 +1353,8 @@ export class IgxSliderComponent implements
13511353
} else {
13521354
this.value = (value as number) - ((value as number) % this.step);
13531355
}
1356+
1357+
this._cdr.detectChanges();
13541358
}
13551359

13561360
private updateTrack() {
@@ -1421,8 +1425,6 @@ export class IgxSliderComponent implements
14211425
this.upperValue = (value as IRangeSliderValue).upper;
14221426
this.lowerValue = (value as IRangeSliderValue).lower;
14231427
}
1424-
1425-
this._onChangeCallback(this.value);
14261428
}
14271429

14281430
private emitValueChanged(oldValue: number | IRangeSliderValue) {

0 commit comments

Comments
 (0)