This repository was archived by the owner on Jul 11, 2019. It is now read-only.
Releases: oliviertassinari/react-event-listener
Releases · oliviertassinari/react-event-listener
v0.4.3
Fixes / Enhancements
- Fix flow issue (#37) @houshuang
v0.4.2
v0.4.1
v0.4.0
New features
- Add a
withOptions
function that can be use to passively listen for scroll event (#13). Thanks @tsuyoshiwada - Reduce the build size by three babel plugins (5318c1a)
v0.3.1
v0.3.0
Breaking Changes
- Mimic React.js behavior for capture event handlers (#10)
The migration path is the following:
-<EventListener target={document} onMouseMove={this.handleMouseMove} capture={true} />
+<EventListener target={document} onMouseMoveCapture={this.handleMouseMove} />
Core
- Upgrade the dependencies
v0.2.1
Improvement
- Add back the support of string instead of a node for the
target
.
v0.2.0
Breaking changes
⚠️ Usetarget={document}
instead ofelementName="document"
.
New features
- Add a new
capture
property. - The
target
property accepts any object. You can add a listener on anything that supportsaddEventListener
. - The component is now pure and will correctly handle rerender.
Thanks @jedwards1211 for your help!
v0.1.2
New features
- You can provide an optional child.
v0.1.1
Bug fixes
- Improve the release process