Skip to content

Commit dd8a925

Browse files
authored
build: fix error with latest MDC version (#21089)
The slider adapter was updated on MDC's side which is breaking the build.
1 parent d9cc055 commit dd8a925

File tree

3 files changed

+592
-587
lines changed

3 files changed

+592
-587
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"@types/youtube": "^0.0.38",
6363
"@webcomponents/custom-elements": "^1.1.0",
6464
"core-js": "^2.6.9",
65-
"material-components-web": "9.0.0-canary.419e03572.0",
65+
"material-components-web": "9.0.0-canary.30c11bfc2.0",
6666
"rxjs": "^6.5.3",
6767
"rxjs-tslint-rules": "^4.33.1",
6868
"systemjs": "0.19.43",

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,12 @@ export class MatSlider implements AfterViewInit, OnChanges, OnDestroy, ControlVa
258258
removeTrackActiveStyleProperty: (_propertyName: string) => {},
259259
emitDragStartEvent: (_value: number, _thumb: Thumb) => {},
260260
emitDragEndEvent: (_value: number, _thumb: Thumb) => {},
261-
getValueToAriaValueTextFn: () => null
261+
getValueToAriaValueTextFn: () => null,
262+
getInputValue: () => '',
263+
setInputValue: (_value: string, _thumb: Thumb) => {},
264+
getInputAttribute: (_attribute: string, _thumb: Thumb) => null,
265+
setInputAttribute: (_attribute: string, _value: string) => {},
266+
removeInputAttribute: (_attribute: string) => {}
262267
};
263268

264269
/** Instance of the MDC slider foundation for this slider. */

0 commit comments

Comments
 (0)