Skip to content
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

Formik Textarea CTRL+ENTER/SHIFT+ENTER does not submit the form #1832

Closed
schmitch opened this issue Sep 20, 2019 · 2 comments
Closed

Formik Textarea CTRL+ENTER/SHIFT+ENTER does not submit the form #1832

schmitch opened this issue Sep 20, 2019 · 2 comments

Comments

@schmitch
Copy link

actually I have a textarea field/form, which does not work (from #1418 (comment)):

<Formik onSubmit={createComment} initialValues={formData} render={props =>
                <Form>
                    <div className="row my-2">
                        <div className="col-xxl-8 col-xl-6 col-12">
                            <h3>Kommentare</h3>
                        </div>
                        <div className="col-xxl-4 col-xl-6 col-12">
                            <button type="submit"
                                    className="btn btn-sm btn-success-flat float-right w-100"
                                    disabled={buttonDisabled}>
                                Hinzufügen
                            </button>

                        </div>
                    </div>

                    <div className="row mb-2">
                        <div className="col-12">
                            <Field component="textarea" rows="2" cols="20" className="form-control" name="value"
                                   required/>
                        </div>
                    </div>
                </Form>
}/>

actually no matter what you press: ctrl+enter,shift+enter, it does not submit the form.

@johnrom
Copy link
Collaborator

johnrom commented Sep 21, 2019

@schmitch there is a lot of information we ask for when opening an issue. Can you provide it? It includes versions of all the dependencies you are using (can't tell if you're even using v1 or v2 from here), and a sandbox reproduction.

You can find the template here: https://github.com/jaredpalmer/formik/issues/new?template=Bug_report.md

@stale stale bot added the stale label Nov 20, 2019
@stale stale bot removed the stale label Apr 30, 2020
@johnrom johnrom added the stale label Apr 30, 2020
@johnrom
Copy link
Collaborator

johnrom commented Nov 24, 2020

closed due to lack of author feedback

@johnrom johnrom closed this as completed Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants