[NUI] Fix Button state issue (#1773)
authorJiyun Yang <ji.yang@samsung.com>
Wed, 1 Jul 2020 06:53:38 +0000 (15:53 +0900)
committerGitHub <noreply@github.com>
Wed, 1 Jul 2020 06:53:38 +0000 (15:53 +0900)
* This fixes the issue that a checkbox selection can not be unselected.
* Note that this is temporary solution, it need to be fixed after
  the Selector priovides priority among the states.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI.Components/Controls/Button.Internal.cs

index 2d108bd..64c1504 100755 (executable)
@@ -363,13 +363,6 @@ namespace Tizen.NUI.Components
                 isEnabled = stateEnabled;
             }
 
-            var stateSelected = (controlStateChangedInfo.CurrentState & ControlStates.Selected) == ControlStates.Selected;
-
-            if (isSelected != stateSelected)
-            {
-                isSelected = stateSelected;
-            }
-
             var statePressed = (controlStateChangedInfo.CurrentState & ControlStates.Pressed) == ControlStates.Pressed;
 
             if (isPressed != statePressed)