Comments (3)
Well, upon initial rendering, you're right, the field values would be empty. But a second render is performed when the values are populated, and then the fields are filled. If you put together a test project, you'll see that it works ok and all the fields are properly filled with defaults.
If you find that's not the case or there's some other issue, let me know!
from formous.
i guess the problem is that it still causes a render with an empty string value which requires all components that take a value to accept and still render when an empty string value is given.
this is a problem in cases such as a dropdown select where a component might expect a valid value (a value that is an option)
from formous.
Dropdowns aren't supported just yet. Getting there!
If setDefaultValues
is not working the way you expect, could you put together a reproduction of the problem you're experiencing? That way I can run it myself and take a look at what's going on.
Thanks!
from formous.
Related Issues (13)
- HTML demo page HOT 1
- Bug: inputs don't get validated on enter/return key HOT 2
- pass formStatus to wrapped component
- Doesn't support IE 9-11 HOT 8
- Working with nested form fields and default form values in this.state HOT 2
- Would like to display submit button disabled if invalid HOT 1
- Using failProps with react-bootstrap?
- Support checkboxes HOT 3
- Suggestion on package name HOT 2
- How to force to show field errors when first time hit submit HOT 1
- Something is breaking server-side rendering HOT 4
- Usage of HOC HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formous.