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

bug: outlined TextInput labels resizing with imperatively set value #4245

Open
ad-walker opened this issue Dec 26, 2023 · 0 comments
Open

bug: outlined TextInput labels resizing with imperatively set value #4245

ad-walker opened this issue Dec 26, 2023 · 0 comments
Labels

Comments

@ad-walker
Copy link

ad-walker commented Dec 26, 2023

Current behaviour

There is a visual bug introduced in 5.11.0 related to theoutlined styled TextInput that is causing inputs with their values set imperatively, either via defaultValue or value render the label and then snap to the left margin.

label-snapping.mp4

Expected behaviour

Prior to 5.11.0, labels rendered in the expected position.

5.10.6.mp4

How to reproduce?

Added a TextInput components with mode="outlined" and an imperatively set value. value and defaultValue will both result in the behavior. Expect the input to display the label snapping behavior on initial render.
<TextInput label="Text Input Label" mode="outlined" value="Your input value"/>

Preview

  • Video examples above

What have you tried so far?

Your Environment

software version
ios 16, 17
android 32, 33
react-native 0.71, 0.72
react-native-paper 5.11.x
node 18.7.0
npm or yarn npm
expo sdk 49.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant