Skip to content

Conversation

@bmigirl
Copy link
Contributor

@bmigirl bmigirl commented Oct 30, 2019

Motivation

This pull request fixes the issue mentioned in Passing TextInput props dynamically hides text input field Value #1346. When TextInput is in uncontrolled mode it's text value disappears when blurred.

Test plan

  • Go to TextInputExample component
  • Remove value and onChangeText props from any text input
  • Run the example
  • Type something to this input, then focus another one. The value of the blurred input should not disappear

@callstack-bot
Copy link

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

@Brendan-csel
Copy link

I gave this a test and it works for me - and solves my problem using TextInput uncontrolled.

Copy link
Contributor

@Trancever Trancever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Madzia!

@Trancever Trancever merged commit c669d51 into callstack:master Nov 14, 2019
@Trancever Trancever deleted the fix/text-input-uncontrolled-mode branch November 14, 2019 10:59
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 this pull request may close these issues.

4 participants