You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/05/06 10:10:39 UTC
[royale-asjs] branch develop updated: jewel-texinnput-textarea: add
turn off by default autocorrect,
autocomplete and spellcheck attributes in Textinput and TextArea
This is an automated email from the ASF dual-hosted git repository.
carlosrovira 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 bc3cc34 jewel-texinnput-textarea: add turn off by default autocorrect, autocomplete and spellcheck attributes in Textinput and TextArea
bc3cc34 is described below
commit bc3cc341452e6778a75ba0427b09d0297a398b2f
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Wed May 6 12:10:34 2020 +0200
jewel-texinnput-textarea: add turn off by default autocorrect, autocomplete and spellcheck attributes in Textinput and TextArea
---
.../projects/Jewel/src/main/royale/org/apache/royale/jewel/TextArea.as | 3 +++
.../Jewel/src/main/royale/org/apache/royale/jewel/TextInput.as | 3 +++
2 files changed, 6 insertions(+)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextArea.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextArea.as
index 657ba9b..65a52bc 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextArea.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextArea.as
@@ -120,6 +120,9 @@ package org.apache.royale.jewel
input = addElementToWrapper(this,'textarea') as HTMLInputElement;
input.setAttribute('type', 'text');
input.setAttribute('rows', rows);
+ input.setAttribute('autocorrect', 'off');
+ input.setAttribute('autocomplete', 'off');
+ input.setAttribute('spellcheck', 'false');
//attach input handler to dispatch royale change event when user write in textinput
//goog.events.listen(element, 'change', killChangeHandler);
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextInput.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextInput.as
index 28173a4..466b328 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextInput.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/TextInput.as
@@ -63,6 +63,9 @@ package org.apache.royale.jewel
{
input = addElementToWrapper(this,'input') as HTMLInputElement;
input.setAttribute('type', 'text');
+ input.setAttribute('autocorrect', 'off');
+ input.setAttribute('autocomplete', 'off');
+ input.setAttribute('spellcheck', 'false');
//attach input handler to dispatch royale change event when user write in textinput
//goog.events.listen(element, 'change', killChangeHandler);