-
Notifications
You must be signed in to change notification settings - Fork 4k
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
How to control text inside Form.Input (like grabbing and clearing after submit)? #1520
Comments
Vanilla React input <input value='I am read only' />
<input defaultValue='I am editable' /> Semantic UI React Input <Input value='I am read only' />
<Input defaultValue='I am editable' /> Shorthand Form.Input <Form.Input value='I am read only' />
<Form.Input defaultValue='I am editable' /> |
Because our components are inline with vanilla React behavior, you can refer to React's docs for more info on how to work with Forms: https://facebook.github.io/react/docs/forms.html#controlled-components |
Thanks levi. That helps a lot. |
I'm adding detailed usage examples for both these cases as well. You can see them here for now: https://github.com/Semantic-Org/Semantic-UI-React/pull/1521/files |
As per this issue here: Semantic-Org/Semantic-UI#1870 , the default option where you can't edit values should not appear as editable, as it may confuse users. |
I don't see any props and example of controlling text inside Form.Input in the documentation . It'd be great if there's an example in documentation.
The text was updated successfully, but these errors were encountered: