question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug with TextInput autoCapitalize

See original GitHub issue

Problem description

when you set a textinput (like on the snippet) and change its autoCapitalize property, the enterKeyType property sets itself to Done and the cursor on TextInput does not automatically go to the second character.

Expected behavior

Just put the autoCapitalize to none after the change(like on the snippet)

Environment

  • Tabris.js version: 3.7.1
  • Device: Huawei P10 Lite
  • OS: Android 8

Code snippet

const{contentView, TextInput} = require("tabris");

new TextInput({left: 0, right: 0, centerY:0, height:50, autoCapitalize:"all",  message: "enter something", type:"multiline"})
.onInput(({target,text})=>{
    if(text === ""){
        target.autoCapitalize = "all";
      }else{
        target.autoCapitalize = false;
      }
}).appendTo(contentView);

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
elshadsmcommented, Jan 26, 2021

@ishigo1987, the issue has been solved.

0reactions
ishigo1987commented, Jan 26, 2021

Thank you @elshadsm

Read more comments on GitHub >

github_iconTop Results From Across the Web

TextInput autoCapitalize="words" not working when ... - GitHub
When adding autoCapitalize="words" and keyboardType with any value, on Android, nothing is auto-capitalized. There have been other issues ...
Read more >
TextInput autoCapitalize ignored on Android if both ...
So I have set autoCapitalize and keyboardType to a TextInput in React Native . But autoCapitalize is ignored. There was a bug in...
Read more >
[Bug 12409] New: Automatic capitalization in input fields
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12409 Summary: ... This allows markup like "<input autocapitalize>", to map to the "on" state.
Read more >
autocapitalization(_:) | Apple Developer Documentation
Use this method when you need to automatically capitalize words, sentences, or other text like proper nouns. In example below, as the user...
Read more >
148504 – autocapitalize="words" capitalizes ... - WebKit Bugzilla
Bug 148504 - autocapitalize="words" capitalizes every word's second character ... Type some words into the <input> field 3.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found