Skip to content

Commit 70a5557

Browse files
* fixup! fix(material-experimental/mdc-slider): append class to indicate short value indicator text
Co-authored-by: Jeremy Elbourn <[email protected]>
1 parent 6645b6e commit 70a5557

File tree

1 file changed

+1
-2
lines changed
  • src/material-experimental/mdc-slider

1 file changed

+1
-2
lines changed

src/material-experimental/mdc-slider/slider.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ export class MatSliderVisualThumb implements AfterViewInit, OnDestroy {
156156

157157
/** Used to append a class to indicate when the value indicator text is short. */
158158
_isShortValue(): boolean {
159-
if (!this.valueIndicatorText) { return false; }
160-
return this.valueIndicatorText.length <= 2;
159+
return this.valueIndicatorText?.length <= 2;
161160
}
162161

163162
private _onMouseEnter = (): void => {

0 commit comments

Comments
 (0)