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(Input): cannot backspace / delete if Input has predefined value prop #1358

Closed
kenvunz opened this issue Feb 21, 2017 · 1 comment
Closed

Comments

@kenvunz
Copy link

kenvunz commented Feb 21, 2017

Steps

Add value prop to an Input component

<Input icon='search' placeholder='Search' value="foo"/>

Expected Result

Should be able to remove the predefined value

Actual Result

Cannot remove the predefined value

Version

0.65.0

Testcase

http://codepen.io/anon/pen/wgVKbp

@levithomason
Copy link
Member

This is not due to SUIR but is how React itself works:

https://facebook.github.io/react/docs/forms.html

Use defaultValue if you'd like the value to be editable.

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