From: Woochanlee Date: Wed, 29 Jun 2022 13:37:14 +0000 (+0900) Subject: [NUI] Picker: Fix wrong value set logic X-Git-Tag: accepted/tizen/unified/20231205.024657~866 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c62cb52f9a29136d5b3f3687273e43b7b6b892b;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Picker: Fix wrong value set logic --- diff --git a/src/Tizen.NUI.Components/Controls/Picker.cs b/src/Tizen.NUI.Components/Controls/Picker.cs index d27ffce..722fc0e 100755 --- a/src/Tizen.NUI.Components/Controls/Picker.cs +++ b/src/Tizen.NUI.Components/Controls/Picker.cs @@ -229,11 +229,9 @@ namespace Tizen.NUI.Components set { if (currentValue == value) return; - - if (currentValue < minValue) currentValue = minValue; - else if (currentValue > maxValue) currentValue = maxValue; - - currentValue = value; + if (value < minValue) currentValue = minValue; + else if (value > maxValue) currentValue = maxValue; + else currentValue = value; UpdateCurrentValue(); }