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 2015/12/01 10:14:21 UTC
[3/5] git commit: [flex-asjs] [refs/heads/core_js_to_as] - Fix
dropdownlist selection
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 <ah...@apache.org>
Authored: Mon Nov 30 16:55:17 2015 -0800
Committer: Alex Harui <ah...@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;
+ }
}
/**