Skip to content

Commit 1b94e81

Browse files
committed
fix: little fixes
1 parent 45ba56f commit 1b94e81

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

packages/calendar/src/lib/calendar/month.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,10 @@ export class MonthComponent implements OnInit, OnChanges {
265265
if (!date) {
266266
this.date = this.selectSpan ? this.selectSpan[1].clone() : moment();
267267
}
268-
this.formatted = this.date.format(this.monthFormat);
269-
this.cells = this.getMonth(this.date.clone(), 'current');
268+
setTimeout(() => {
269+
this.formatted = this.date.format(this.monthFormat);
270+
this.cells = this.getMonth(this.date.clone(), 'current');
271+
});
270272
}
271273

272274
/** Selects the day of the given moment. */

packages/data/src/lib/entry-actionbar/entry-actionbar.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class EntryActionbarComponent extends ActionbarComponent implements OnIni
119119
if (!value) {
120120
value = [];
121121
}
122-
this.selection.replaceWith(value.map((liteEntry) => new Item(this.getEntryAction(liteEntry), this.config)));
122+
this.selection?.replaceWith(value.map((liteEntry) => new Item(this.getEntryAction(liteEntry), this.config)));
123123
}
124124

125125
filterDropdownList(listComponent: ListComponent<any>, query) {

src/app/form/datetime-demo.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@ import moment from 'moment-es6';
1010
<h2>Calendar: {{ calendar.value }}</h2>
1111
<p>controls + month grid inside</p>
1212
<ec-calendar #calendar></ec-calendar>
13-
<h2>Month Heatmap</h2>
14-
<ec-heatmap [selectSpan]="selectSpan" [date]="myDate"
15-
[disableDrag]="false" [disableDragAnywhere]="true" (spanChanged)="changedSpan($event)" [timestamps]="timestamps"></ec-heatmap>
1613
<button (click)="changeMonth()">change month</button>
1714
<h2>Month</h2>
1815
<p>Just month grid</p>
1916
<ec-month #month></ec-month>
2017
{{ month.date }}
2118
`,
2219
})
20+
/*
21+
<h2>Month Heatmap</h2>
22+
<ec-heatmap [selectSpan]="selectSpan" [date]="myDate"
23+
[disableDrag]="false" [disableDragAnywhere]="true" (spanChanged)="changedSpan($event)" [timestamps]="timestamps"></ec-heatmap> */
2324
export class DatetimeDemoComponent {
2425
timestamps;
2526
myDate;

0 commit comments

Comments
 (0)