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 2019/11/25 19:10:40 UTC
[royale-asjs] 01/02: mvoe to TextInput
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
commit 383f819ce032299060041a439bdc66f94b9ea18f
Author: Alex Harui <ah...@apache.org>
AuthorDate: Mon Nov 25 09:52:24 2019 -0800
mvoe to TextInput
---
.../SparkRoyale/src/main/royale/spark/components/TextInput.as | 10 ++++++++++
.../spark/components/supportClasses/SkinnableTextBase.as | 5 -----
2 files changed, 10 insertions(+), 5 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 bc232b8..f67eb83 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
@@ -330,6 +330,16 @@ public class TextInput extends SkinnableTextBase
}
// END
+ override public function set maxChars(value:int):void
+ {
+ super.maxChars = value;
+ COMPILE::JS
+ {
+ (element as HTMLInputElement).maxLength = value;
+ //dispatchEvent(new Event('htmlTextChanged'));
+ }
+ }
+
COMPILE::JS
override protected function createElement():WrappedHTMLElement
{
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableTextBase.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableTextBase.as
index 4b975f7..daaf95e 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableTextBase.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/supportClasses/SkinnableTextBase.as
@@ -1234,11 +1234,6 @@ public class SkinnableTextBase extends SkinnableComponent
return;
_maxChars = value;
- COMPILE::JS
- {
- (element as HTMLInputElement).maxLength = value;
- //dispatchEvent(new Event('htmlTextChanged'));
- }
}
//----------------------------------