Skip to content

Commit

Permalink
fix(calendardatepicker): Now closes the opened picker when the contro…
Browse files Browse the repository at this point in the history
…l is unloading
  • Loading branch information
carldebilly committed Jun 7, 2021
1 parent 34657f0 commit 9121bd9
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,13 @@ public event TypedEventHandler<CalendarDatePicker, CalendarDatePickerDateChanged
add => _dateChanged += value;
remove => _dateChanged -= value;
}

private protected override void OnUnloaded()
{
// Ensure flyout is closed when the control is unloaded
IsCalendarOpen = false;

base.OnUnloaded();
}
}
}

0 comments on commit 9121bd9

Please sign in to comment.