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/03/11 20:50:52 UTC

[royale-asjs] branch develop updated: TextInput dispatch valueCommit as well as change. Should fix #752

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 37e5cd2  TextInput dispatch valueCommit as well as change.  Should fix #752
37e5cd2 is described below

commit 37e5cd263c074507a727fdae5b14d115fd10904f
Author: Alex Harui <ah...@apache.org>
AuthorDate: Wed Mar 11 13:50:35 2020 -0700

    TextInput dispatch valueCommit as well as change.  Should fix #752
---
 .../projects/SparkRoyale/src/main/royale/spark/components/TextInput.as | 3 +++
 1 file changed, 3 insertions(+)

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 4ce4a3f..5cdaf0a 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
@@ -406,7 +406,10 @@ public class TextInput extends SkinnableTextBase
 	public function textChangeHandler(event:Event):void
 	{
         if (!inSetter)
+		{
             dispatchEvent(new Event(Event.CHANGE));
+            dispatchEvent(new Event(FlexEvent.VALUE_COMMIT));
+		}
 	}
 
     //--------------------------------------------------------------------------