Comments (5)
@shashankp250 bit of a hacky solution but you can change your render method to this:
render() {
return (
<Formik
initialValues={{
coach: ''
}}
validationSchema={this.getSchema}
onSubmit={this.onSubmit}
render={props => {
console.log(props.values.coach)
return (
<Form mode="structured">
<Select
name="coach"
label="Coach Name"
placeholder="Select Coach"
options={coaches}
required
/>
<SubmitBtn />
</Form>
)
}}
/>
)
}
from react-formik-ui.
Experiencing the same issue.
from react-formik-ui.
Sorry But onChange is not a prop that can be set. It is internally used to set the value to Formik. So there is no way you might console log it
from react-formik-ui.
The whole idea of React-Formik-UI is that you have an election of Form components that you can use without worrying on setting up onChange handlers and other Formik specific functions. In case you need more elaborated or custom components please refer to Formik Documentation.
from react-formik-ui.
@shashankp250 you can also see the value set to formik by inspecting your Formik form in the developer console through React Dev tools
from react-formik-ui.
Related Issues (20)
- Enhancements to Dropzone HOT 9
- Implement a robust number field HOT 3
- Datepicker return minus one day in the json data HOT 1
- Is there a way to provide custom name to the submit button ? HOT 3
- how to give custom name to the submit button ? HOT 1
- How can i change the color of the solid line below the input ? HOT 3
- DropZone - Nested property does not work HOT 3
- DatePicker required error message doesn't go away when a date is selected HOT 1
- Select with integer value is converted to string during form submit HOT 1
- Add FieldArray to examples HOT 1
- FIELDSET - INPUT SIDE BY SIDE HOT 1
- PhoneInput clears when I press backspace HOT 2
- Dropzone styling HOT 2
- Way to send only the updated field values using formik HOT 1
- Dropzone get image url from s3 aws bucket
- Dropzone show image from url
- Allow components to be imported individually. HOT 2
- Custom Label Component HOT 3
- React-Formik-UI checkbox's onChange event not accessible HOT 1
- IFormikUiFormProps interface typo 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 react-formik-ui.