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 53fd341  text property in Spark TextInput
53fd341 is described below

commit 53fd341610d9f19d75f4950885894ad880eb7ae8
Author: pashminakazi <[email protected]>
AuthorDate: Tue Dec 10 11:21:12 2019 +0500

    text property in Spark TextInput
---
 .../src/main/royale/spark/components/TextInput.as          | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

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 090576c..db97881 100644
--- 
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
+++ 
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
@@ -293,6 +293,17 @@ public class TextInput extends SkinnableTextBase
     /**
      *  @private
      */
+    override public function get text():String
+    {
+               COMPILE::SWF
+               {
+                       return ITextModel(model).text;
+               }
+               COMPILE::JS
+               {
+                       return (element as HTMLInputElement).value;
+               }
+    }
     override public function set text(value:String):void
     {
         // BEGIN - this code shouldn't exist once SkinnableTextBase is fixed
@@ -309,9 +320,10 @@ public class TextInput extends SkinnableTextBase
                }
         // END
 
-        super.text = value;
+      /*  super.text = value; */
         // Trigger bindings to textChanged.
         dispatchEvent(new Event("textChanged"));
+       dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));
     }
 
     // BEGIN - this code shouldn't exist once SkinnableTextBase is fixed

Reply via email to