Skip to content

Commit d8e8167

Browse files
committed
fix(calendar): fix dateFormat overrides
fixes #4374
1 parent 4881641 commit d8e8167

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/components/calendar/calendar-class.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ class Calendar extends Framework7Class {
1111
const calendar = this;
1212

1313
calendar.params = extend({}, app.params.calendar, params);
14+
// dateFormat should not be deep-merged, instance value must fully replace app default
15+
if (typeof params.dateFormat !== 'undefined') {
16+
calendar.params.dateFormat = params.dateFormat;
17+
}
1418

1519
let $containerEl;
1620
if (calendar.params.containerEl) {

0 commit comments

Comments
 (0)