question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`preventEnter` not part of BasicFormProps

See original GitHub issue

Per title - preventEnter should be part of BasicFormProps

Screen Shot 2020-03-02 at 9 35 29 AM

current BasicFormProps -

  export interface BasicFormProps<V = FormValues> {
    allowEmptyStrings?: boolean
    onSubmit?: (values: V) => void
    preSubmit?: (values: V) => V
    initialValues?: V
    onChange?: (formState: FormState<V>) => void
    onValueChange?: (values: V) => void
    dontPreventDefault?: boolean
    getApi?: (formApi: FormApi<V>) => void
    onSubmitFailure?: (errors: { [key in keyof V]: FormError }) => void
    validate?: (values: V) => FormError
    validateFields?: (values: V) => { [key in keyof V]: FormError } | undefined
  }

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
joepuzzocommented, Mar 3, 2020

This is now fixed and in the latest release

0reactions
joykliucommented, Mar 3, 2020

works! thank you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to prevent ENTER keypress to submit a web form?
The "should enter -> submit" discussion is important, but not related to the actual question asked. Here is the code, up to you...
Read more >
Prevent Enter Key Submitting Forms With JQuery | #! code
This is done by binding a JQuery event to the input elements of the form and returning false if the key pressed is...
Read more >
How can I prevent ENTER from submitting form?
enter does NOT submit the form and I'm forced to reach for my mouse. That said, it's simple: don't add a submit button...
Read more >
Using JavaScript to prevent or trigger form submission when ...
Prevent ENTER from submitting · Include the following element into the head part of your document: <script type="text/javascript"> function noenter() { return !(...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found