Calendar last day selection fixed #1465

This commit is contained in:
Joan Sanchez 2019-09-04 08:42:01 +02:00
parent d3441fa1b3
commit 693c204e21
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ export default class Calendar extends Component {
this.addEvent(event); this.addEvent(event);
}); });
if (value.length && this.defaultDate) { if (this.defaultDate) {
this.repaint(); this.repaint();
this.checkSize(); this.checkSize();
} }

View File

@ -75,7 +75,7 @@ class Controller {
if (exists > -1) totalEvents++; if (exists > -1) totalEvents++;
}); });
if (totalEvents > (values.length / 2)) if (totalEvents == 1 || totalEvents > (values.length / 2))
this.removeEvents(calendar, values); this.removeEvents(calendar, values);
else else
this.insertEvents(calendar, values); this.insertEvents(calendar, values);