Skip to content

Commit

Permalink
chore: fix more review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov committed Sep 18, 2023
1 parent ed400e1 commit b05a93c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions projects/kit/components/input-range/input-range.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ export class TuiInputRangeComponent
]);

if (newValue[0] !== this.value[0] || newValue[1] !== this.value[1]) {
this.safelyUpdateValue(newValue);
this.updateTextfieldValues(this.value);
this.onExternalValueUpdate(newValue);
}
}

Expand All @@ -215,7 +214,7 @@ export class TuiInputRangeComponent
this.safelyUpdateValue([this.value[0], value ?? this.safeCurrentValue[1]]);
}

onRangeValue(value: [number, number]): void {
onExternalValueUpdate(value: [number, number]): void {
this.safelyUpdateValue(value);
this.updateTextfieldValues(this.value);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
[segments]="segments"
[step]="step"
(activeThumbChange)="onActiveThumbChange($event)"
(ngModelChange)="onRangeValue($event)"
(ngModelChange)="onExternalValueUpdate($event)"
(tuiPressedChange)="focusToTextInput()"
></tui-range>
</div>

0 comments on commit b05a93c

Please sign in to comment.