Calendar last day selection fixed #1465
This commit is contained in:
parent
d3441fa1b3
commit
693c204e21
|
@ -67,7 +67,7 @@ export default class Calendar extends Component {
|
|||
this.addEvent(event);
|
||||
});
|
||||
|
||||
if (value.length && this.defaultDate) {
|
||||
if (this.defaultDate) {
|
||||
this.repaint();
|
||||
this.checkSize();
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@ class Controller {
|
|||
if (exists > -1) totalEvents++;
|
||||
});
|
||||
|
||||
if (totalEvents > (values.length / 2))
|
||||
if (totalEvents == 1 || totalEvents > (values.length / 2))
|
||||
this.removeEvents(calendar, values);
|
||||
else
|
||||
this.insertEvents(calendar, values);
|
||||
|
|
Loading…
Reference in New Issue