Bug with TextInput autoCapitalize
See original GitHub issueProblem 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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ishigo1987, the issue has been solved.
Thank you @elshadsm