Comparing version 3.0.0 to 3.0.1
@@ -43,5 +43,5 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
if (autoFocus && !disabled) { | ||
focus(); | ||
mergedRef.current.focus(); | ||
} | ||
}, [props.autoFocus, props.disabled]); | ||
}, [props.autoFocus]); | ||
React.useEffect(function () { | ||
@@ -48,0 +48,0 @@ if ('checked' in props) { |
@@ -60,5 +60,5 @@ "use strict"; | ||
if (autoFocus && !disabled) { | ||
focus(); | ||
mergedRef.current.focus(); | ||
} | ||
}, [props.autoFocus, props.disabled]); | ||
}, [props.autoFocus]); | ||
React.useEffect(function () { | ||
@@ -65,0 +65,0 @@ if ('checked' in props) { |
{ | ||
"name": "rc-switch", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"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
24041