flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [3/5] git commit: [flex-asjs] [refs/heads/core_js_to_as] - Fix dropdownlist selection
Date Tue, 01 Dec 2015 09:14:21 GMT
Fix dropdownlist selection


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/9cddf046
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9cddf046
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9cddf046

Branch: refs/heads/core_js_to_as
Commit: 9cddf046562389c5a03c1c8e24fd781b63a07ccb
Parents: 7cec0a5
Author: Alex Harui <aharui@apache.org>
Authored: Mon Nov 30 16:55:17 2015 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Nov 30 16:55:17 2015 -0800

----------------------------------------------------------------------
 .../HTML/as/src/org/apache/flex/html/DropDownList.as      | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9cddf046/frameworks/projects/HTML/as/src/org/apache/flex/html/DropDownList.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/DropDownList.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/DropDownList.as
index f4d5cbb..dd069b2 100644
--- a/frameworks/projects/HTML/as/src/org/apache/flex/html/DropDownList.as
+++ b/frameworks/projects/HTML/as/src/org/apache/flex/html/DropDownList.as
@@ -146,10 +146,15 @@ package org.apache.flex.html
 
         /**
          *  @private
+         *  @flexjsignorecoercion HTMLSelectElement
          */
         public function set selectedIndex(value:int):void
         {
             ISelectionModel(model).selectedIndex = value;
+            COMPILE::JS
+            {
+                (element as HTMLSelectElement).selectedIndex = ISelectionModel(model).selectedIndex;
+            }
         }
         
 
@@ -169,10 +174,15 @@ package org.apache.flex.html
 
         /**
          *  @private
+         *  @flexjsignorecoercion HTMLSelectElement
          */
         public function set selectedItem(value:Object):void
         {
             ISelectionModel(model).selectedItem = value;
+            COMPILE::JS
+            {
+                (element as HTMLSelectElement).selectedIndex = ISelectionModel(model).selectedIndex;
+            }
         }
                         
         /**


Mime
View raw message