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

yishayw pushed a commit to branch label_fix
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 1b6170c17f3e7922996bfbd63f655cd65545203a
Author: DESKTOP-RH4S838\Yishay <[email protected]>
AuthorDate: Thu Aug 1 18:40:41 2019 +0300

    Fix for text input set label?
---
 .../src/main/royale/spark/components/TextInput.as          | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
index 46985d2..bd95fcb 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
@@ -292,8 +292,18 @@ public class TextInput extends SkinnableTextBase
      */
     override public function set text(value:String):void
     {
-        super.text = value;
-        
+        COMPILE::SWF
+               {
+                       inSetter = true;
+                       ITextModel(model).text = value;
+                       inSetter = false;
+               }
+               
+               COMPILE::JS
+               {
+                       (element as HTMLInputElement).value = value;
+               }
+
         // Trigger bindings to textChanged.
         dispatchEvent(new Event("textChanged"));
     }

Reply via email to