Skip to content

Commit

Permalink
Update model on date deselect. Fixes primefaces#3876.
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-druzhinin authored Dec 13, 2017
1 parent 6f85eb1 commit 06c951e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,10 @@ export class Calendar implements AfterViewInit,AfterViewChecked,OnInit,OnDestroy
}

if(this.isMultipleSelection() && this.isSelected(dateMeta)) {
this.value = this.value.filter((date, i) => {
return !this.isDateEquals(date, dateMeta);
});
this.updateModel( this.value.filter((date, i) => {
return !this.isDateEquals(date, dateMeta);
})
);
}
else {
if(this.shouldSelectDate(dateMeta)) {
Expand Down

1 comment on commit 06c951e

@RotaDI
Copy link

@RotaDI RotaDI commented on 06c951e Dec 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi. When it will be in release? I need it :). Thank you

Please sign in to comment.