Skip to content

Commit 2f10a95

Browse files
tinayuangaokara
authored andcommitted
fix(radio): change radio button trigger element to input element (#2838)
1 parent 62189a3 commit 2f10a95

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/lib/radio/radio.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="md-radio-outer-circle"></div>
77
<div class="md-radio-inner-circle"></div>
88
<div md-ripple *ngIf="!_isRippleDisabled()" class="md-radio-ripple"
9-
[mdRippleTrigger]="_getHostElement()"
9+
[mdRippleTrigger]="_getInputElement()"
1010
[mdRippleCentered]="true"
1111
[mdRippleSpeedFactor]="0.3"
1212
mdRippleBackgroundColor="rgba(0, 0, 0, 0)"></div>

Diff for: src/lib/radio/radio.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,8 @@ export class MdRadioButton implements OnInit {
500500
}
501501
}
502502

503-
_getHostElement() {
504-
return this._elementRef.nativeElement;
503+
_getInputElement() {
504+
return this._inputElement.nativeElement;
505505
}
506506
}
507507

0 commit comments

Comments
 (0)