Skip to content

Commit

Permalink
fix(radio): change radio button trigger element to input element (#2838)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinayuangao authored and kara committed Feb 6, 2017
1 parent 62189a3 commit 2f10a95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/radio/radio.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="md-radio-outer-circle"></div>
<div class="md-radio-inner-circle"></div>
<div md-ripple *ngIf="!_isRippleDisabled()" class="md-radio-ripple"
[mdRippleTrigger]="_getHostElement()"
[mdRippleTrigger]="_getInputElement()"
[mdRippleCentered]="true"
[mdRippleSpeedFactor]="0.3"
mdRippleBackgroundColor="rgba(0, 0, 0, 0)"></div>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/radio/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,8 @@ export class MdRadioButton implements OnInit {
}
}

_getHostElement() {
return this._elementRef.nativeElement;
_getInputElement() {
return this._inputElement.nativeElement;
}
}

Expand Down

0 comments on commit 2f10a95

Please sign in to comment.