We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1df73fb commit ee63ad3Copy full SHA for ee63ad3
src/material/slider/slider.ts
@@ -797,7 +797,7 @@ export class MatSlider
797
798
/** Updates the width of the tick mark track. */
799
private _updateTickMarkTrackUI(): void {
800
- if (this._skipUpdate()) {
+ if (!this.showTickMarks || this._skipUpdate()) {
801
return;
802
}
803
@@ -883,7 +883,12 @@ export class MatSlider
883
884
/** Updates the dots along the slider track. */
885
_updateTickMarkUI(): void {
886
- if (this.step === undefined || this.min === undefined || this.max === undefined) {
+ if (
887
+ !this.showTickMarks ||
888
+ this.step === undefined ||
889
+ this.min === undefined ||
890
+ this.max === undefined
891
+ ) {
892
893
894
const step = this.step > 0 ? this.step : 1;
0 commit comments