@chakra-ui/editable
Advanced tools
Comparing version 2.0.12 to 2.0.13
@@ -142,2 +142,6 @@ "use strict"; | ||
onSubmitProp == null ? void 0 : onSubmitProp(value); | ||
const inputEl = inputRef.current; | ||
if ((inputEl == null ? void 0 : inputEl.ownerDocument.activeElement) === inputEl) { | ||
inputEl == null ? void 0 : inputEl.blur(); | ||
} | ||
}, [value, onSubmitProp]); | ||
@@ -144,0 +148,0 @@ const onChange = (0, import_react2.useCallback)((event) => { |
@@ -111,2 +111,6 @@ // ../../../react-shim.js | ||
onSubmitProp == null ? void 0 : onSubmitProp(value); | ||
const inputEl = inputRef.current; | ||
if ((inputEl == null ? void 0 : inputEl.ownerDocument.activeElement) === inputEl) { | ||
inputEl == null ? void 0 : inputEl.blur(); | ||
} | ||
}, [value, onSubmitProp]); | ||
@@ -113,0 +117,0 @@ const onChange = useCallback((event) => { |
{ | ||
"name": "@chakra-ui/editable", | ||
"version": "2.0.12", | ||
"version": "2.0.13", | ||
"description": "React component used to build inline-editable components", | ||
@@ -47,4 +47,4 @@ "keywords": [ | ||
"devDependencies": { | ||
"@chakra-ui/system": "2.2.12", | ||
"@chakra-ui/layout": "2.1.8", | ||
"@chakra-ui/system": "2.3.0", | ||
"@chakra-ui/layout": "2.1.9", | ||
"react": "^18.0.0", | ||
@@ -51,0 +51,0 @@ "clean-package": "2.1.1" |
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
36685
954