You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2019/12/03 07:55:28 UTC
[royale-asjs] branch develop updated: Update TextInput.as
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 e2275ae Update TextInput.as
e2275ae is described below
commit e2275ae0958036b69865a4e42f6c5aec26fb56da
Author: pashminakazi <42...@users.noreply.github.com>
AuthorDate: Tue Dec 3 12:55:19 2019 +0500
Update TextInput.as
---
.../projects/MXRoyale/src/main/royale/mx/controls/TextInput.as | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as
index d93e42d..4be2093 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/TextInput.as
@@ -1028,11 +1028,10 @@ public class TextInput extends UIComponent implements ITextInput
return;
_maxChars = value;
- maxCharsChanged = true;
-
- invalidateProperties();
-
- dispatchEvent(new Event("maxCharsChanged"));
+ COMPILE::JS
+ {
+ (element as HTMLInputElement).maxLength = value;
+ }
}
//----------------------------------