rc-picker
Advanced tools
Comparing version 0.0.1-alpha.43 to 0.0.1-alpha.44
@@ -64,2 +64,6 @@ "use strict"; | ||
var preventBlurRef = React.useRef(false); | ||
var cancelRef = React.useRef({ | ||
onCancel: onCancel | ||
}); | ||
cancelRef.current.onCancel = onCancel; | ||
var inputProps = { | ||
@@ -131,3 +135,3 @@ onMouseDown: function onMouseDown() { | ||
if (isClickOutside(document.activeElement)) { | ||
onCancel(); | ||
cancelRef.current.onCancel(); | ||
} | ||
@@ -134,0 +138,0 @@ }, 0); |
@@ -64,2 +64,6 @@ "use strict"; | ||
var preventBlurRef = React.useRef(false); | ||
var cancelRef = React.useRef({ | ||
onCancel: onCancel | ||
}); | ||
cancelRef.current.onCancel = onCancel; | ||
var inputProps = { | ||
@@ -131,3 +135,3 @@ onMouseDown: function onMouseDown() { | ||
if (isClickOutside(document.activeElement)) { | ||
onCancel(); | ||
cancelRef.current.onCancel(); | ||
} | ||
@@ -134,0 +138,0 @@ }, 0); |
{ | ||
"name": "rc-picker", | ||
"version": "0.0.1-alpha.43", | ||
"version": "0.0.1-alpha.44", | ||
"description": "React date & time picker", | ||
@@ -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
546583
13053