From 8bec0d909829b74e124009484154be98c0963cb6 Mon Sep 17 00:00:00 2001 From: Dominic Carretto Date: Tue, 30 Oct 2018 19:27:26 -0400 Subject: [PATCH] fix(radio): Remove native control adapter methods (#1498) Changed as per material-components/material-components-web#3785 --- packages/radio/radio.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/radio/radio.ts b/packages/radio/radio.ts index 8e4bb2a11..b9e308748 100644 --- a/packages/radio/radio.ts +++ b/packages/radio/radio.ts @@ -154,19 +154,14 @@ export class MdcRadio implements AfterViewInit, OnDestroy, MdcFormFieldControl this._getHostElement().classList.add(className), removeClass: (className: string) => this._getHostElement().classList.remove(className), - getNativeControl: () => this._getInputElement() + setNativeControlDisabled: (disabled: boolean) => this.disabled = disabled }; } private _foundation: { init(): void, destroy(): void, - isChecked(): boolean, - setChecked(checked: boolean): void, - setDisabled(disabled: boolean): void, - isDisabled(): boolean, - getValue(): any, - setValue(value: any): void + setDisabled(disabled: boolean): void } = new MDCRadioFoundation(this.createAdapter()); constructor( @@ -232,7 +227,8 @@ export class MdcRadio implements AfterViewInit, OnDestroy, MdcFormFieldControl