[TIMOB-11042] MobileWeb: Cannot disable TextField autocorrect behavior
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-06-26T21:53:47.000+0000 |
Affected Version/s | Release 2.1.2 |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | n/a |
Reporter | Benjamin Hatfield |
Assignee | Chris Barber |
Created | 2012-09-21T10:27:10.000+0000 |
Updated | 2018-04-04T23:20:35.000+0000 |
Description
In MobileWeb, the TextField autocorrect behavior is always on despite setting the property to false. The code below works for Android and iOS, but not MobileWeb.
REPRODUCTION:
Need to add some words to the Android user dictionary, so there is something to autocorrect:
Menu [Button] -> Settings -> Language & Keyboard -> User Dictionary -> Menu [Button] -> Add
Run the following code on the Android emulator:
var win = Ti.UI.createWindow({backgroundColor: 'white'});
var textField = Ti.UI.createTextField({
autocorrect: false,
width: Ti.UI.FILL,
borderWidth: 1,
borderColor: 'gray',
top: 10
});
win.add(textField);
win.open();
alert(textField.autocorrect);
Start spelling a word you added to the user dictionary.
ACTUAL RESULTS:
Autocorrect will offer some assistance.
EXPECTED RESULTS:
Autocorrect should not show up.
SIDE NOTE:
Also suffers from TIMOB-10867, where the initial default value returned is false (if left unset during creation), but the default behavior acts as if it is true.
Resolving as "Won't Fix" as MobileWeb has been deprecated.
Closing as will not fix.