Skip to content

Commit e235b54

Browse files
author
adams
committed
Fixes zillow#76 - console warning regarding setting a property on the pooled synthetic event object
1 parent 3de2baf commit e235b54

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-slider",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"description": "Slider component for React",
55
"main": "react-slider.js",
66
"keywords": [
@@ -20,7 +20,7 @@
2020
},
2121
"repository": {
2222
"type": "git",
23-
"url": "https://github.com/mpowaga/react-slider.git"
23+
"url": "https://github.com/adamshone/react-slider.git"
2424
},
2525
"peerDependencies": {
2626
"react": ">=15.0.0"

react-slider.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
function pauseEvent(e) {
1616
if (e.stopPropagation) e.stopPropagation();
1717
if (e.preventDefault) e.preventDefault();
18-
e.cancelBubble = true;
19-
e.returnValue = false;
18+
e.nativeEvent.cancelBubble = true;
19+
e.nativeEvent.returnValue = false;
2020
return false;
2121
}
2222

2323
function stopPropagation(e) {
2424
if (e.stopPropagation) e.stopPropagation();
25-
e.cancelBubble = true;
25+
e.nativeEvent.cancelBubble = true;
2626
}
2727

2828
/**

0 commit comments

Comments
 (0)