Fix maxPastDate attribute for calendar component.