Skip to content

mapbox/react-submittable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 @mapbox/react-submittable

About

Stop using preventDefault to get form behavior in React.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy