Merge pull request #323 from telerik/snenchev/d-calendar_key_exception
-Fix calendar exception thrown when switching cells
This commit is contained in:
Коммит
8c5f3caa0f
|
@ -259,7 +259,7 @@ namespace Telerik.UI.Xaml.Controls.Input.Calendar
|
|||
this.currentCellsToUpdate.Clear();
|
||||
}
|
||||
|
||||
if (oldCurrentDate != DateTime.MinValue && oldCurrentDate != newCurrentDate)
|
||||
if (oldCurrentDate != DateTime.MinValue && oldCurrentDate.Date != newCurrentDate.Date)
|
||||
{
|
||||
oldCurrentDate = CalendarMathHelper.GetCellDateForViewLevel(oldCurrentDate, this.Owner.DisplayMode);
|
||||
CalendarCellModel previousCell = this.Owner.GetCellByDate(oldCurrentDate);
|
||||
|
|
Загрузка…
Ссылка в новой задаче