Skip to content

Commit 26c7e54

Browse files
authored
build: fix errors with latest MDC canary version (#21151)
Accounts for a breaking change in the latest MDC canary version.
1 parent 34a43f6 commit 26c7e54

File tree

3 files changed

+592
-591
lines changed

3 files changed

+592
-591
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.40",
6363
"@webcomponents/custom-elements": "^1.1.0",
6464
"core-js": "^2.6.9",
65-
"material-components-web": "9.0.0-canary.30c11bfc2.0",
65+
"material-components-web": "9.0.0-canary.eff7b46ac.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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,7 @@ export class MatSlider implements AfterViewInit, OnChanges, OnDestroy, ControlVa
231231
getAttribute: (_attribute: string) => null,
232232
addThumbClass: (_className: string, _thumb: Thumb) => {},
233233
removeThumbClass: (_className: string, _thumb: Thumb) => {},
234-
getThumbAttribute: (_attribute: string, _thumb: Thumb) => null,
235-
setThumbAttribute: (_attribute: string, _value: string, _thumb: Thumb) => {},
236234
getThumbKnobWidth: (_thumb: Thumb) => 0,
237-
isThumbFocused: (_thumb: Thumb) => false,
238-
focusThumb: (_thumb: Thumb) => {},
239235
getThumbBoundingClientRect: (_thumb: Thumb) => null!,
240236
getBoundingClientRect: () => null!,
241237
isRTL: () => false,
@@ -263,7 +259,11 @@ export class MatSlider implements AfterViewInit, OnChanges, OnDestroy, ControlVa
263259
setInputValue: (_value: string, _thumb: Thumb) => {},
264260
getInputAttribute: (_attribute: string, _thumb: Thumb) => null,
265261
setInputAttribute: (_attribute: string, _value: string) => {},
266-
removeInputAttribute: (_attribute: string) => {}
262+
removeInputAttribute: (_attribute: string) => {},
263+
focusInput: () => {},
264+
isInputFocused: (_thumb: Thumb) => false,
265+
registerInputEventHandler: (_thumb: Thumb, _evtType: string, _handler: any) => {},
266+
deregisterInputEventHandler: (_thumb: Thumb, _evtType: string, _handler: any) => {},
267267
};
268268

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

0 commit comments

Comments
 (0)