You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2020/05/15 18:47:19 UTC
[royale-asjs] branch develop updated: implement Spark List
selectedItem. Should fix #830
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 c7ebd9e implement Spark List selectedItem. Should fix #830
c7ebd9e is described below
commit c7ebd9eeb96c79ac3eee6fc3f24770237ee81a8e
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri May 15 11:46:58 2020 -0700
implement Spark List selectedItem. Should fix #830
---
.../src/main/royale/spark/components/supportClasses/ListBase.as | 2 ++
1 file changed, 2 insertions(+)
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
index b9b393f..a5ba4ca 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/ListBase.as
@@ -1023,6 +1023,7 @@ public class ListBase extends SkinnableContainer
*/
public function get selectedItem():*
{
+ return (((view as SparkContainerView).contentView as DataGroup).model as ISelectionModel).selectedItem;
/* if (_pendingSelectedItem !== undefined)
return _pendingSelectedItem;
@@ -1040,6 +1041,7 @@ public class ListBase extends SkinnableContainer
*/
public function set selectedItem(value:*):void
{
+ (((view as SparkContainerView).contentView as DataGroup).model as ISelectionModel).selectedItem = value;
// setSelectedItem(value, false);
}