Skip to content

Commit ba58297

Browse files
committed
Address feedback
1 parent 6ce56b1 commit ba58297

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/lib/datepicker/datepicker.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,7 @@ export class MatDatepicker<D> implements OnDestroy {
188188
/** Whether the calendar is open. */
189189
@Input()
190190
get opened(): boolean { return this._opened; }
191-
set opened(value: boolean) {
192-
const shouldOpen = coerceBooleanProperty(value);
193-
194-
if (shouldOpen) {
195-
this.open();
196-
} else {
197-
this.close();
198-
}
199-
}
191+
set opened(shouldOpen: boolean) { shouldOpen ? this.open() : this.close(); }
200192
private _opened = false;
201193

202194
/** The id for the datepicker calendar. */

0 commit comments

Comments
 (0)