Skip to content

javierbyte/react-clickaway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Clickaway

Mixin that adds a componentClickAway method to react components that fires the you click away from it.

Installation

npm install react-clickaway --save

Add it to your component

mixins: [
  require('react-clickaway')
]

And then just add the method:

componentClickAway: function() {
  console.log('Someone clicked outside this component...')
}

Thanks

This is just a modularized version of the https://github.com/callemall work, they used this script internally on material-ui.

About

Clickaway mixin for react, based on https://github.com/callemall work

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published