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

Nested Text tags inside Textinput not working as expected #1380

Closed
shakeabi opened this issue Jun 25, 2019 · 2 comments
Closed

Nested Text tags inside Textinput not working as expected #1380

shakeabi opened this issue Jun 25, 2019 · 2 comments

Comments

@shakeabi
Copy link

The problem

Nested Text tags inside Textinput not working as expected. In react native we can have inline styling inside TextInput. However, this is not reflected in react-native-web.

How to reproduce

Simplified test case: link

Steps to reproduce:

  1. Add a TextInput
  2. Add multiple Text tags inside it

Expected behavior

This works perfectly on native (Expo: link)

Environment (include versions). Did this work in previous versions?

  • React Native for Web (version): 0.9.3
  • React (version): 16.8.6
  • Browser: Chrome
    No, It did not work on previous versions either.
@shakeabi
Copy link
Author

This can be fixed by replacing textarea and input with div(content-editable) tags. Any thoughts?

@necolas
Copy link
Owner

necolas commented Jun 27, 2019

Duplicate of #1023

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

2 participants