You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2019/11/06 07:51:30 UTC

[royale-asjs] branch develop updated: For default selection of labelField = "label"

This is an automated email from the ASF dual-hosted git repository.

pushminakazi 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 4951336  For default selection of labelField = "label"
     new 611ad6e  Merge pull request #549 from alinakazi/patch-3
4951336 is described below

commit 49513365c4fc7f5c1525c487e625cfcaab8a213c
Author: alinakazi <AL...@GMAIL.COM>
AuthorDate: Tue Nov 5 23:49:54 2019 -0800

    For default selection of labelField = "label"
    
    For default selection of labelField = "label" if labelField property is  not set
---
 .../main/royale/spark/components/supportClasses/DropDownListBase.as    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListBase.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListBase.as
index c607a5c..c772276 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListBase.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/DropDownListBase.as
@@ -221,7 +221,8 @@ public class DropDownListBase extends List
     public function DropDownListBase()
     {
         super();
-
+	if((model as ISelectionModel).labelField == null) 
+		labelField("label");
        // dropDownController = new DropDownController();
     }