react-onclickoutside

An onClickOutside wrapper for React components

MIT License

Downloads
9.4M
Stars
1.8K
Committers
62

Bot releases are hidden (Show)

react-onclickoutside - v6.7.1 Latest Release

Published by Andarist almost 7 years ago

Fixed removing event listeners in some browsers.

react-onclickoutside - v6.7.0

Published by Andarist almost 7 years ago

  • upgraded to babel@7 (beta)
  • exposing flat bundles to npm now

8% gain in lib's size

react-onclickoutside - v6.6.3

Published by Andarist almost 7 years ago

  • Detect passive event support and try to use it only if its available - should fix removing touch event listeners on older mobile browsers
react-onclickoutside - v6.6.2

Published by Andarist almost 7 years ago

  • moved "uid" generation from componentDidMount to the constructor, otherwise if enableOnClickOutside got called before componentDidMount (i.e. in WrappedComponent's componentDidMount) the handler got registered under undefined "uid"
react-onclickoutside - v6.6.1

Published by Andarist almost 7 years ago

  • fixed issue with manual enableOnClickOutside calls - which caused duplicated handlers being attached to the document
react-onclickoutside - v6.6.0

Published by Andarist about 7 years ago

  • fixed issue with some props being aggressively cached in closures, which caused handlers being called with stale values
  • building UMD bundles and publishing them to npm (thanks to @jochenberger)
react-onclickoutside - v6.5.0

Published by Andarist about 7 years ago

  • exporting IGNORE_CLASS_NAME so it may be used as constant instead of hard-coding it in the projects
  • fixed logic of the passive listeners under the hood
  • build tools tweaks, distributed files should weigh a little less
react-onclickoutside - v6.1.0

Published by Andarist about 7 years ago

  • publishing both commonjs and es module format from now on, this allows module-aware bundlers like i.e. rollup and webpack2+ to load this module in a better way
react-onclickoutside - v6.0.0

Published by Andarist about 7 years ago

  • refactored library to use es6 classes syntax
  • allowing for the wrapped component to render null, handling attachment/deattachment of internal DOM listeners automatically in such cases
  • passing explicit passive setting for the touch events (based on the preventDefault prop)
Package Rankings
Top 0.84% on Npmjs.org
Top 21.51% on Repo1.maven.org
Top 4.84% on Bower.io
Badges
Extracted from project README
npm version Build Status npm
Related Projects