Skip to content

Releases: Pomax/react-onclickoutside

v6.7.1

16 Jan 07:27
Compare
Choose a tag to compare

Fixed removing event listeners in some browsers.

v6.7.0

11 Nov 13:08
Compare
Choose a tag to compare
  • upgraded to babel@7 (beta)
  • exposing flat bundles to npm now

8% gain in lib's size

v6.6.3

30 Oct 20:15
Compare
Choose a tag to compare
  • Detect passive event support and try to use it only if its available - should fix removing touch event listeners on older mobile browsers

v6.6.2

19 Oct 23:15
Compare
Choose a tag to compare
  • 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"

v6.6.1

19 Oct 11:52
Compare
Choose a tag to compare
  • fixed issue with manual enableOnClickOutside calls - which caused duplicated handlers being attached to the document

v6.6.0

28 Sep 22:07
Compare
Choose a tag to compare
  • 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)

v6.5.0

21 Aug 12:09
Compare
Choose a tag to compare
  • 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

v6.1.0

21 Aug 12:04
Compare
Choose a tag to compare
  • 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

v6.0.0

21 Aug 12:00
Compare
Choose a tag to compare
  • 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)