You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2020/10/12 08:12:18 UTC

[royale-asjs] branch develop updated: Fixed #918

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

harbs 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 b9755ba  Fixed #918
b9755ba is described below

commit b9755ba849fc83eeaace795535aa22ab6da0f90f
Author: Harbs <ha...@in-tools.com>
AuthorDate: Mon Oct 12 11:11:59 2020 +0300

    Fixed #918
---
 .../src/main/royale/spark/components/beads/DropDownListView.as    | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as
index 15f4a45..9e467ac 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/DropDownListView.as
@@ -41,6 +41,7 @@ package spark.components.beads
     import org.apache.royale.events.Event;
     import org.apache.royale.events.IEventDispatcher;
     import org.apache.royale.html.beads.IDropDownListView;
+    import org.apache.royale.html.util.getLabelFromData;
 
     /**
      *  @private
@@ -106,14 +107,11 @@ package spark.components.beads
             {
                 label.label = (host as DropDownList).prompt;
             }
-            else if (selectionModel.labelField != null)
-            {
-                label.label = selectionModel.selectedItem[selectionModel.labelField].toString();
-            }
             else
             {
-                label.label = selectionModel.selectedItem.toString();
+
             }
+            label.label = getLabelFromData(selectionModel,selectionModel.selectedItem);
         }
 
         /**