Skip to content

Neither TextField nor TextView have any response to autocorrect="true" on Android 6. #8221

Open
@ChangePlaces

Description

@ChangePlaces

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
"@nativescript/theme": "~2.2.0",
"nativescript-ui-dataform": "^6.0.0",
"nativescript-ui-listview": "^8.0.1",
"tns-core-modules": "~6.3.0"
tns-android 6.3.0

Describe the bug
Using TextField or TextView, I'd like the keyboard to have a word suggestion above the keys, but all autocorrect="true" does is put a red line under misspelt words. I see in the code there is an autocomplete property, but the fields seem unresponsive to this too . The text input form in RadDataForm does provide word suggestions.

To Reproduce

Expected behavior
To see suggested words above the keyboard as one types. To achieve this at the moment, I'm having to use an onLoaded for the TextField:

    if (Application.android) {
        var txtField = args.object;
        txtField.android.setInputType(android.text.InputType.TYPE_CLASS_TEXT | android.text.InputType.TYPE_TEXT_FLAG_AUTO_CORRECT );
   }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions