-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[iOS] TextInput styles not applied with initial empty value #24087
Comments
This should fixed on |
@zhongwuzw Can you point me to the commit you're talking about? I'd gladly check it out. |
I made some commits to fix text input related issues, I think after this #23585? |
I'm trying to install it now. But |
@zhongwuzw Yes! That works. All my tests pass. Android, too (make sense since your changes don't touch it). Any idea when this might get shipped? |
@RWOverdijk Sorry, no idea, but if you wants to apply it ASAP, you can try comment in react-native-community/releases#100, that we may cherry-pick them if possible. |
🐛 Bug Report
My TextInput styles aren't applied if my initial TextInput state is an empty string, or if I erase all the content manually and start typing again.
If my TextInput has a value in its initial state, it does apply my styles and I can see the spacing. That is, until I manually (backspace) remove the content and start typing again. Then the spacing is gone.
To Reproduce
I can't reproduce it with a snack. It works as expected there. But, maybe it's a version thing... The versions I'm using are in the Environment section of this ticket.
Here's a gif to demonstrate the behavior I'm seeing:
state = { text: 'default' }
)Expected Behavior
I expect my styling to be applied consistently.
Code Example
This is the code. But like I said, it works on expo
https://snack.expo.io/@rwoverdijk/courageous-waffle
Environment
Sidenote(s)
It took me a lot of time to get the gif the right size on github. Also, the snack name is really cool. I hope that earns this issue some points.
Also, it works as expected on android.
The text was updated successfully, but these errors were encountered: