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.

The quickstart on readme.md mentioned this.handleSubmit = this.handleSubmit.bind(this);, which is empty and will set off error.

Moreover, onChange is handled properly while onSubmit is not.

Maybe we need to handle ENTER?

if(s === ENTER && this.props.onSubmit && value !== originalValue){
  return this.props.onSubmit(value);
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
danrspencercommented, Mar 8, 2019

3rded - for now I’ve copied the code into a file locally and added my own onSubmit method

1reaction
vadimdemedescommented, Mar 13, 2019

I guess I accidentally removed it when migrating to Ink 2 or earlier 🤷‍♂️ If anyone’s willing to help out with this, would be great! If not, I will take care of it bit later this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

useForm - handleSubmit - React Hook Form
Performant, flexible and extensible forms with easy-to-use validation.
Read more >
Forms - React
setState({value: event.target.value}); } handleSubmit(event) { alert('A name ... handleSubmit}> <label> Name: <input type="text" value={this.state.value} ...
Read more >
What's the difference between `handleSubmit` and `onSubmit`?
redux-form covers handleSubmit functionality by providing a respective handler that you pass as a prop - that is, a handleSubmit method for you...
Read more >
react hook form - useForm: handleSubmit - YouTube
This session cover handleSubmit API inside react hook form.Doc: https://react-hook-form.com/api/ handleSubmit.
Read more >
How to use handleSubmit function in react-hook-form - Tabnine
Best JavaScript code snippets using react-hook-form.handleSubmit(Showing top 15 results out of 315) ; const UserForm = (props) => { ; const UsersSearchForm =...
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