mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(radio): change radio button trigger element to input element (#2838)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -500,8 +500,8 @@ export class MdRadioButton implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
_getHostElement() {
|
||||
return this._elementRef.nativeElement;
|
||||
_getInputElement() {
|
||||
return this._inputElement.nativeElement;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user