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:
Kristiyan Kostadinov
2018-11-07 18:39:20 +00:00
committed by vivian-hu
parent d94d17614c
commit 31bffb38fe
2 changed files with 4 additions and 0 deletions
@@ -5,6 +5,7 @@
[attr.aria-label]="_intl.openCalendarLabel"
[attr.tabindex]="disabled ? -1 : tabIndex"
[disabled]="disabled"
[disableRipple]="disableRipple"
(click)="_open($event)">
<svg
+3
View File
@@ -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;