Doesn't work with redux field
See original GitHub issueI tried to wrap the NumberFormat in redux-form/field but it doesn’t get the value initialized or set although the inner input contains the correct value.
Here’s the code:
<Field name={this.props.fieldName} component={NumberFormat} customInput={TextField} hintText={this.props.title} thousandSeparator={true} prefix={'$'}/>
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Field Validation doesn't work · Issue #3832 - GitHub
I can't seem to get Field validation working, no matter what I try. Nothing seems to work. I am using Material UI Next...
Read more >Redux-form <Field /> type prop not working for checkbox or ...
I went through the documentation but anything other than type "text" and "email" is not working. For example, I want to use a...
Read more >Field - Redux Form
getRenderedComponent() #. Returns the instance of the rendered component. For this to work, you must provide a forwardRef prop, and your component must...
Read more >Installing and Configuring Redux Form - DevCamp
All right welcome back to the course. In this video we are going to build a signin form component that we will put...
Read more >Final Form Docs – Migration from Redux Form
Step 4: Get form state from <Form/> , not as props · import React from 'react' import { Form, Field } from 'react-final-form'...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think
redux-form
uses theonChange
handler to modify form state. You will need to wrap theNumberFormat
component to callprops.onChange
(passed from redux-form) whenNumberFormat.onValueChange occurs
.I think I solved with this:
const { inputRef, input: {onChange}, ...other } = props;