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

fix: controlled text input #3145

Merged
merged 7 commits into from
Apr 26, 2022

Conversation

seahorsepip
Copy link
Contributor

Use value from props instead of local state for controlled TextInput.

Summary

See #3144

Test plan

Test both a controlled and non controlled input, check if value shown in input is correct.

There's no need to keep track of value state internally when component is controlled and value is received as prop (state is in parent component).
@callstack-bot
Copy link

callstack-bot commented Apr 6, 2022

Hey @seahorsepip, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@seahorsepip seahorsepip changed the title Controlled text input fix: Controlled text input Apr 9, 2022
@lukewalczak lukewalczak changed the title fix: Controlled text input fix: controlled text input Apr 26, 2022
@lukewalczak lukewalczak merged commit fcd402e into callstack:main Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants