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 component: persistent black underline #1670

Closed
JakubKubista opened this issue Jul 13, 2020 · 6 comments
Closed

TextInput component: persistent black underline #1670

JakubKubista opened this issue Jul 13, 2020 · 6 comments

Comments

@JakubKubista
Copy link

The problem
When you start typing to the TextInput component, then every letter has black underline as a default style on Smart TV (Samsung). This style is not possible to turn off for such a device at the moment. Styles like textdecorationline are not working, but for this case has been released underlineColorAndroid prop, which is currently missing at React Native Web. There is also a small chance, that it's related to known issue 1023.

How to reproduce

  1. Include the TextInput component at Smart TV app on Android or Samsung Tizen.
  2. Focus on the TextInput component.
  3. Start writing some text.

Result
Black underline appears below the text without any option to disable it.

Expected behavior
There should be an option to change text-decoration for these devices.

  • Environment (include versions): Samsung Smart TV19 - UE43RU7445UXXC
  • Did this work in previous versions? No
  • React Native for Web (version): 0.11.7
  • React (version): 16.8.5
  • Browser: TBC
@necolas
Copy link
Owner

necolas commented Jul 13, 2020

Is this the issue / fix? https://www.quora.com/How-do-I-remove-the-underline-feature-while-typing-in-Android-keyboard

Obviously a prop added to RN for the native Android platform isn't going to do anything on web though

@necolas necolas closed this as completed Jul 13, 2020
@JakubKubista
Copy link
Author

@necolas Thank you very much for a quick response. No, this underline appears every time, when a new character appears and the world is not finished even if the world makes sense or not, so it's not related to spelling correction.

@necolas
Copy link
Owner

necolas commented Jul 13, 2020

Try turning off autocorrect. If not, let me know when you know what the cause is.

@JakubKubista
Copy link
Author

There is not even an autocorrect option on this type of Smart TVs. Since it works with RN then RNW update would be the option on how to make this works. We will try to investigate further about details.

@necolas
Copy link
Owner

necolas commented Jul 13, 2020

Autocorrect is a web attribute

@JakubKubista
Copy link
Author

Disabling native mobile features such as autocomplete="off", autocorrect="off", autocapitalize="off" or spellcheck="false" won't help.

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

Successfully merging a pull request may close this issue.

2 participants