-
Notifications
You must be signed in to change notification settings - Fork 254
Support for programmatic change of Textfield value #58
Conversation
What's the usecase? |
Try to update value using react-devtools from empty to some value and backwards. If value assigned programmatically, then label will be under real text and vice versa. |
I have a real use case where I'm editing images and when I switch them some images have filled values and some don't. |
Not sure if it's needed for validation, though. |
Good catch. |
I tried using |
Not yet no... But it should work since it updates the css. |
Usually such methods assume that you know what you're doing and handled everything, so it does not dispatch event. |
Ping |
@tleunen So what about that PR? |
Did not get a chance to test it yet. Should do that tomorrow. |
Just did a rebase on master. |
So I checked it, with react-devtools, and there one thing I don't understand... When changing the value, the But it should be the opposite. |
If you're testing this in demos then you can just see other fields updating too as there are rerender of parent component and we have no I checked it, everything is alright, except we should add |
I just did a rebase on top of master. |
Can we talk about that problem in a more real time way? May be gitter or something like that? |
I created the gitter room so we can discuss about it :) |
This will correctly work with floatingLabel when change from empty value or to empty value
closing this in favor of #79 |
This will correctly work with floatingLabel when
change from empty value or to empty value