Fix a bug where selected date won't be selected if OnDateSelected is null