From aa09451905e3946fd307fa9cb85041ec7a87f6bd Mon Sep 17 00:00:00 2001 From: "edin.fazlic" Date: Tue, 16 Feb 2016 10:59:18 +0100 Subject: [PATCH] fix(datepicker): setting default value for SHOW_WEEKS --- components/datepicker/datepicker-inner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/datepicker/datepicker-inner.ts b/components/datepicker/datepicker-inner.ts index 31728f0a7b..abf2871722 100644 --- a/components/datepicker/datepicker-inner.ts +++ b/components/datepicker/datepicker-inner.ts @@ -131,7 +131,7 @@ export class DatePickerInner implements OnInit { this.formatDayHeader = this.formatDayHeader || FORMAT_DAY_HEADER; this.formatDayTitle = this.formatDayTitle || FORMAT_DAY_TITLE; this.formatMonthTitle = this.formatMonthTitle || FORMAT_MONTH_TITLE; - this.showWeeks = !!this.showWeeks || SHOW_WEEKS; + this.showWeeks = (this.showWeeks === undefined ? SHOW_WEEKS : this.showWeeks); this.startingDay = this.startingDay || STARTING_DAY; this.yearRange = this.yearRange || YEAR_RANGE; this.shortcutPropagation = this.shortcutPropagation || SHORTCUT_PROPAGATION;