rc-slider
Advanced tools
Comparing version 8.6.2 to 8.6.3
@@ -209,4 +209,10 @@ import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; | ||
value: function blur() { | ||
var _this2 = this; | ||
if (!this.props.disabled) { | ||
this.handlesRefs[0].blur(); | ||
Object.keys(this.handlesRefs).forEach(function (key) { | ||
if (_this2.handlesRefs[key] && _this2.handlesRefs[key].blur) { | ||
_this2.handlesRefs[key].blur(); | ||
} | ||
}); | ||
} | ||
@@ -213,0 +219,0 @@ } |
@@ -26,2 +26,5 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty'; | ||
_this.onEnd = function () { | ||
_this.setState({ | ||
handle: null | ||
}, _this.blur); | ||
_this.removeDocumentEvents(); | ||
@@ -28,0 +31,0 @@ _this.props.onAfterChange(_this.getValue()); |
@@ -271,4 +271,10 @@ 'use strict'; | ||
value: function blur() { | ||
var _this2 = this; | ||
if (!this.props.disabled) { | ||
this.handlesRefs[0].blur(); | ||
Object.keys(this.handlesRefs).forEach(function (key) { | ||
if (_this2.handlesRefs[key] && _this2.handlesRefs[key].blur) { | ||
_this2.handlesRefs[key].blur(); | ||
} | ||
}); | ||
} | ||
@@ -275,0 +281,0 @@ } |
@@ -76,2 +76,5 @@ 'use strict'; | ||
_this.onEnd = function () { | ||
_this.setState({ | ||
handle: null | ||
}, _this.blur); | ||
_this.removeDocumentEvents(); | ||
@@ -78,0 +81,0 @@ _this.props.onAfterChange(_this.getValue()); |
{ | ||
"name": "rc-slider", | ||
"version": "8.6.2", | ||
"version": "8.6.3", | ||
"description": "Slider UI component for React", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1038704
12780
2