Skip to content

Commit

Permalink
Fix primefaces#14590 and primefaces#12286 - Single dates only calende…
Browse files Browse the repository at this point in the history
…r not possible with hand typing
  • Loading branch information
eduardeviden committed Feb 10, 2024
1 parent 4e6110e commit 8f60d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2740,7 +2740,7 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor {
}
} else if (value.every((v: any) => this.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false))) {
if (this.isRangeSelection()) {
isValid = value.length > 1 && value[1] > value[0] ? true : false;
isValid = value.length === 1 || (value.length > 1 && value[1] >= value[0] ? true : false);
}
}
return isValid;
Expand Down

0 comments on commit 8f60d0d

Please sign in to comment.