This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 9a9df5e  clear selectedIndices when selectedIndex is set. Should fix 
#652
9a9df5e is described below

commit 9a9df5e287ebfdeb6a4f4eeff93ec114697ec461
Author: Alex Harui <[email protected]>
AuthorDate: Tue Jan 7 10:52:28 2020 -0800

    clear selectedIndices when selectedIndex is set. Should fix #652
---
 .../MXRoyale/src/main/royale/mx/controls/listClasses/AdvancedListBase.as | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/AdvancedListBase.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/AdvancedListBase.as
index 886283e..42ccbe4 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/AdvancedListBase.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/AdvancedListBase.as
@@ -2605,6 +2605,7 @@ public class AdvancedListBase extends ListBase /* extends 
UIComponent
     {   
         if (collection)
             value = Math.min(collection.length - 1, value);
+        clearSelected();
         super.selectedIndex = value;
     }
     

Reply via email to