flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mkess...@apache.org
Subject git commit: [flex-sdk] - FLEX-24780: Returned dispatchChangeAfterSelection to false after preventDefault is called commitSelection is called. This should resolve the issue for all children such as list, buttonbar, tabbar and the like.
Date Tue, 16 Apr 2013 00:23:10 GMT
Updated Branches:
  refs/heads/develop 3c9d73ba5 -> 00201ff88


FLEX-24780: Returned dispatchChangeAfterSelection to false after preventDefault is called
commitSelection is called.  This should resolve the issue for all children such as list, buttonbar,
tabbar and the like.


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/00201ff8
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/00201ff8
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/00201ff8

Branch: refs/heads/develop
Commit: 00201ff88e87cd361e1f46d487c9084b99c3266b
Parents: 3c9d73b
Author: Mark Kessler <KesslerConsulting@gmail.com>
Authored: Mon Apr 15 20:20:11 2013 -0400
Committer: Mark Kessler <KesslerConsulting@gmail.com>
Committed: Mon Apr 15 20:22:16 2013 -0400

----------------------------------------------------------------------
 .../spark/components/supportClasses/ListBase.as    |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/00201ff8/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as b/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
index d0da37f..a25f9df 100644
--- a/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ b/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -1322,6 +1322,10 @@ public class ListBase extends SkinnableDataContainer
                 // The event was cancelled. Cancel the selection change and return.
                 itemSelected(_proposedSelectedIndex, false);
                 _proposedSelectedIndex = NO_PROPOSED_SELECTION;
+
+                //Reset back to false to resolve selectedIndex
+                dispatchChangeAfterSelection = false;
+
                 return false;
             }
         }


Mime
View raw message