Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextInput's autoCapitalize changes inputType unexpectily. This is not mentioned in the docs. #4466

Open
voxlz opened this issue Jan 28, 2025 · 1 comment

Comments

@voxlz
Copy link

voxlz commented Jan 28, 2025

Description

TextInput's autoCapitalize changes inputType unexpectily. This is not mentioned in the docs.

What is the problem?

I just spent an hour debugging why I'm losing certain keystrokes on android. It turns out that using the autoCapitalize flag will change the text input after the first input, casing a short period where inputs are not registered. This is quite unexpected and not really meantioned in the docs.

How can we address it?

Update the list of unsupported inputTypes to include the android only "visible-password", and add a description what happenes if do use them together (it will switch over to a supported inputType it seems)

Why is it important?

This is quite unexpected and will save time debugging.

Who needs this?

People who like me are trying to hide auto sugesstions will be forced to use "visible-password". I think it's good to explicity warn those developers against using autoCapitalize.

When should this happen (use version numbers if needed)?

I don't really know.

@voxlz
Copy link
Author

voxlz commented Jan 28, 2025

           <TextInput
              keyboardType="visible-password"
              autoCapitalize="words"
           />

vs

           <TextInput
              keyboardType="visible-password"
           />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant