react-submittable
a replacement for preventing the default behavior of forms: allows submission on enter
Last updated 11 years ago by tmcw .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-submittable 
SYNC missed versions from official npm registry.

react-submittable

build status Coverage Status

Stop using preventDefault to get form behavior in React.

<Submittable
  onEnter={this.onEnter}
  onCancel={this.onCancel}>
  <input type='text' />
</Submittable>

The Submittable component simulates the same enter & escape behaviors you would get with the submit event of an HTML form, without having to shut down the default behavior. It also catches the escape key and calls an onCancel event when it sees it.

install

npm install --save react-submittable

Current Tags

  • 2.0.0                                ...           latest (9 years ago)

6 Versions

  • 2.0.0                                ...           9 years ago
  • 1.0.4                                ...           9 years ago
  • 1.0.3                                ...           10 years ago
  • 1.0.2                                ...           11 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |