Skip to content

Commit d887109

Browse files
committed
fix
1 parent 84ef4a0 commit d887109

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/reactNodeUtil.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const stripProps = (props: Record<string, any>) => {
2121
* Recursively clone ReactNode and remove data-*, id, ref, onFocus, onBlur props
2222
* to avoid potential issues with nested elements in table cells.
2323
*/
24-
export const sanitizeCloneElement = memo(function sanitizeCloneElement(
24+
export const sanitizeCloneElement = memo(function sanitizeClone(
2525
node: React.ReactNode,
2626
): React.ReactNode {
2727
if (!isValidElement(node)) {
@@ -30,7 +30,7 @@ export const sanitizeCloneElement = memo(function sanitizeCloneElement(
3030
const cleanedProps = stripProps(node.props);
3131
if (cleanedProps.children) {
3232
cleanedProps.children = React.Children.map(cleanedProps.children, child =>
33-
sanitizeCloneElement(child),
33+
sanitizeClone(child),
3434
);
3535
}
3636
return cloneElement(node, cleanedProps);

0 commit comments

Comments
 (0)