Skip to content

Commit 79e4e26

Browse files
committed
build: update to MDC 3.0.0
Bumps the repo to `[email protected]` and fixes a compilation error that showed up as a result.
1 parent dcde115 commit 79e4e26

File tree

3 files changed

+451
-454
lines changed

3 files changed

+451
-454
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"version": "8.0.2",
3838
"requiredAngularVersion": "^8.0.0 || ^9.0.0-0",
39-
"requiredMDCVersion": "^2.3.1",
39+
"requiredMDCVersion": "^3.0.0",
4040
"dependencies": {
4141
"@angular/animations": "^8.1.0",
4242
"@angular/common": "^8.1.0",
@@ -47,7 +47,7 @@
4747
"@angular/platform-browser": "^8.1.0",
4848
"@webcomponents/custom-elements": "^1.1.0",
4949
"core-js": "^2.6.1",
50-
"material-components-web": "^2.3.1",
50+
"material-components-web": "^3.0.0",
5151
"rxjs": "^6.4.0",
5252
"systemjs": "0.19.43",
5353
"tsickle": "^0.35.0",

src/material-experimental/mdc-chips/chip.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@ export class MatChip extends _MatChipMixinBase implements AfterContentInit, Afte
256256
this._elementRef.nativeElement.style.setProperty(propertyName, value);
257257
},
258258
hasLeadingIcon: () => { return !!this.leadingIcon; },
259+
setAttr: (name: string, value: string) => {
260+
this._elementRef.nativeElement.setAttribute(name, value);
261+
},
259262
// The 2 functions below are used by the MDC ripple, which we aren't using,
260263
// so they will never be called
261264
getRootBoundingClientRect: () => this._elementRef.nativeElement.getBoundingClientRect(),

0 commit comments

Comments
 (0)