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/20 05:45:32 UTC
[royale-asjs] branch develop updated: Valuecommit is actually on
focusout
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 6a23ced Valuecommit is actually on focusout
6a23ced is described below
commit 6a23ced737d9e8ccb8095150474cc59fa803c4eb
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Mar 19 22:45:12 2020 -0700
Valuecommit is actually on focusout
---
.../SparkRoyale/src/main/royale/spark/components/TextInput.as | 8 +++++++-
1 file changed, 7 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 5cdaf0a..3ec84c9 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
@@ -36,6 +36,7 @@ import org.apache.royale.events.Event;
import org.apache.royale.html.accessories.RestrictTextInputBead;
import mx.core.mx_internal;
import mx.events.FlexEvent;
+import mx.events.FocusEvent;
import spark.components.supportClasses.SkinnableTextBase;
import spark.components.supportClasses.SkinnableComponent;
@@ -408,9 +409,14 @@ public class TextInput extends SkinnableTextBase
if (!inSetter)
{
dispatchEvent(new Event(Event.CHANGE));
- dispatchEvent(new Event(FlexEvent.VALUE_COMMIT));
}
}
+
+ override protected function focusOutHandler(event:FocusEvent):void
+ {
+ super.focusOutHandler(event);
+ dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));
+ }
//--------------------------------------------------------------------------
//