From e435d25dd9b2b7f98cfef3e195dbfde045142e66 Mon Sep 17 00:00:00 2001 From: Carl de Billy Date: Wed, 28 Apr 2021 17:55:54 -0400 Subject: [PATCH] fix(datepicker): Fix datePicker .Date is not correctly updated. This commit is a workaround for the following bug: https://github.com/unoplatform/uno/issues/5845 This will fix https://github.com/unoplatform/uno/issues/5471 --- .../Primitives/LoopingSelector/LoopingSelector_Partial.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Uno.UI/UI/Xaml/Controls/Primitives/LoopingSelector/LoopingSelector_Partial.cs b/src/Uno.UI/UI/Xaml/Controls/Primitives/LoopingSelector/LoopingSelector_Partial.cs index a0dea3dbe52c..0baed783c23e 100644 --- a/src/Uno.UI/UI/Xaml/Controls/Primitives/LoopingSelector/LoopingSelector_Partial.cs +++ b/src/Uno.UI/UI/Xaml/Controls/Primitives/LoopingSelector/LoopingSelector_Partial.cs @@ -1904,8 +1904,9 @@ void SetScrollPosition(double offset, bool useAnimation) //IFCEXPECT(enqueued); enqueued = spDispatcherQueue.TryEnqueue(() => { + // UNO-TODO: Animations are disabled because of https://github.com/unoplatform/uno/issues/5845 _tpScrollViewer.ChangeViewWithOptionalAnimation(null, spVerticalOffset, null, - false /* disableAnimation */); + true /* disableAnimation */); }); } }