We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9545427 commit ce1472eCopy full SHA for ce1472e
src/lib/datepicker/datepicker.ts
@@ -148,7 +148,8 @@ export class MdDatepicker<D> implements OnDestroy {
148
/** Whether the datepicker pop-up should be disabled. */
149
@Input()
150
get disabled() {
151
- return this._disabled === undefined ? this._datepickerInput.disabled : this._disabled;
+ return this._disabled === undefined && this._datepickerInput ?
152
+ this._datepickerInput.disabled : this._disabled;
153
}
154
set disabled(value: any) {
155
const newValue = coerceBooleanProperty(value);
0 commit comments