You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/05/21 20:25:13 UTC

[06/12] git commit: [flex-sdk] [refs/heads/develop] - Fix FLEX-28247. Editor should cause component to lose focus and save state before saving edited data

Fix FLEX-28247.  Editor should cause component to lose focus and save state before saving edited data


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

Branch: refs/heads/develop
Commit: 2905e438cdfe2d49d9636ce44a3b2d4d568b4cc0
Parents: 9010f8d
Author: Alex Harui <ah...@apache.org>
Authored: Sun May 19 21:25:39 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue May 21 11:24:43 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2905e438/frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as b/frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as
index 6156634..205eec0 100644
--- a/frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as
+++ b/frameworks/projects/spark/src/spark/components/gridClasses/GridItemEditor.as
@@ -460,6 +460,10 @@ public class GridItemEditor extends Group implements IGridItemEditor
         if (!validate())
             return false;
         
+        // set focus to DataGrid to force internal components to commit changes to 
+        // their data properties.
+        dataGrid.setFocus();
+        
         var newData:Object = value;
         var property:String;
         var data:Object = data;