Skip to content

Commit 552ce6f

Browse files
committed
(hotfix): off should only use removeEventListener
- typo / copy-paste error in last release accidentally changed it to `addEventListener` - publish as v0.2.1
1 parent 26cd1a5 commit 552ce6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-signature-canvas",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "A signature pad implementation in React",
55
"main": "build/index.js",
66
"scripts": {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export default class SignatureCanvas extends Component {
151151
this._canvas.removeEventListener("touchmove", this._handleTouchMove)
152152
document.removeEventListener("touchend", this._handleTouchEnd)
153153

154-
window.addEventListener('resize', this._checkClearOnResize)
154+
window.removeEventListener('resize', this._checkClearOnResize)
155155
}
156156

157157
_handleMouseDown = (ev) => {

0 commit comments

Comments
 (0)