Comparing version 1.5.2 to 1.5.3
@@ -81,3 +81,3 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
tabIndex: switchTabIndex, | ||
ref: 'node', | ||
ref: this.saveNode, | ||
onKeyDown: this.handleKeyDown, | ||
@@ -124,4 +124,4 @@ onClick: this.toggle, | ||
this.handleMouseUp = function (e) { | ||
if (_this2.refs.node) { | ||
_this2.refs.node.blur(); | ||
if (_this2.node) { | ||
_this2.node.blur(); | ||
} | ||
@@ -132,2 +132,6 @@ if (_this2.props.onMouseUp) { | ||
}; | ||
this.saveNode = function (node) { | ||
_this2.node = node; | ||
}; | ||
}; | ||
@@ -134,0 +138,0 @@ |
@@ -116,3 +116,3 @@ 'use strict'; | ||
tabIndex: switchTabIndex, | ||
ref: 'node', | ||
ref: this.saveNode, | ||
onKeyDown: this.handleKeyDown, | ||
@@ -158,4 +158,4 @@ onClick: this.toggle, | ||
this.handleMouseUp = function (e) { | ||
if (_this2.refs.node) { | ||
_this2.refs.node.blur(); | ||
if (_this2.node) { | ||
_this2.node.blur(); | ||
} | ||
@@ -166,2 +166,6 @@ if (_this2.props.onMouseUp) { | ||
}; | ||
this.saveNode = function (node) { | ||
_this2.node = node; | ||
}; | ||
}; | ||
@@ -168,0 +172,0 @@ |
{ | ||
"name": "rc-switch", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "switch ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19245
433