mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(datepicker): unable to disable ripple on datepicker toggle (#13997)
Allows for the ripple on the datepicker toggle to be disabled. Fixes #13986.
This commit is contained in:
committed by
vivian-hu
parent
d94d17614c
commit
31bffb38fe
@@ -5,6 +5,7 @@
|
||||
[attr.aria-label]="_intl.openCalendarLabel"
|
||||
[attr.tabindex]="disabled ? -1 : tabIndex"
|
||||
[disabled]="disabled"
|
||||
[disableRipple]="disableRipple"
|
||||
(click)="_open($event)">
|
||||
|
||||
<svg
|
||||
|
||||
@@ -69,6 +69,9 @@ export class MatDatepickerToggle<D> implements AfterContentInit, OnChanges, OnDe
|
||||
}
|
||||
private _disabled: boolean;
|
||||
|
||||
/** Whether ripples on the toggle should be disabled. */
|
||||
@Input() disableRipple: boolean;
|
||||
|
||||
/** Custom icon set by the consumer. */
|
||||
@ContentChild(MatDatepickerToggleIcon) _customIcon: MatDatepickerToggleIcon;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user