Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/material/slider/slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ export class MatSlider

/** Updates the width of the tick mark track. */
private _updateTickMarkTrackUI(): void {
if (this._skipUpdate()) {
if (!this.showTickMarks || this._skipUpdate()) {
return;
}

Expand Down Expand Up @@ -883,7 +883,12 @@ export class MatSlider

/** Updates the dots along the slider track. */
_updateTickMarkUI(): void {
if (this.step === undefined || this.min === undefined || this.max === undefined) {
if (
!this.showTickMarks ||
this.step === undefined ||
this.min === undefined ||
this.max === undefined
) {
return;
}
const step = this.step > 0 ? this.step : 1;
Expand Down