@clayui/shared
Advanced tools
Comparing version 3.75.0 to 3.75.2
@@ -8,3 +8,3 @@ /** | ||
declare type Children = React.ReactElement & { | ||
ref?: React.MutableRefObject<HTMLElement>; | ||
ref?: React.MutableRefObject<HTMLElement> | ((ref: HTMLElement | null) => void); | ||
}; | ||
@@ -11,0 +11,0 @@ declare type ChildrenFunction = Children | ((focusManager: ReturnType<typeof useFocusManagement>) => Children); |
@@ -93,7 +93,9 @@ "use strict"; | ||
elRef.current = r; | ||
var ref = child.ref; | ||
var _ref2 = child.ref; | ||
if (ref) { | ||
if (_typeof(ref) === 'object') { | ||
ref.current = r; | ||
if (_ref2) { | ||
if (_typeof(_ref2) === 'object') { | ||
_ref2.current = r; | ||
} else if (typeof _ref2 === 'function') { | ||
_ref2(r); | ||
} | ||
@@ -100,0 +102,0 @@ } |
{ | ||
"name": "@clayui/shared", | ||
"version": "3.75.0", | ||
"version": "3.75.2", | ||
"description": "ClayShared component", | ||
@@ -44,3 +44,3 @@ "license": "BSD-3-Clause", | ||
], | ||
"gitHead": "2d5918fec63eb709cc2aac7a0aab35176442b2fc" | ||
"gitHead": "2b0e308f458bab6c8e4aca763d34197e7bd69cb1" | ||
} |
Sorry, the diff of this file is not supported yet
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
93896
2579
2749