= ({
);
return (
- // eslint-disable-next-line jsx-a11y/no-static-element-interactions
- ) => {
- if (!actionRef.current?.contains(e.target as Node)) {
- actionRef.current?.click();
+ if (!actionInnerRef.current?.contains(e.target as Node)) {
+ actionInnerRef.current?.click();
}
onClick?.(e);
}}
+ ref={ref}
>
{children({
CardAction: fixedForwardRef(PartialAppliedCardAction),
})}
-
+
);
-};
+}
+
+export const WithCardAction = fixedForwardRef(WithCardActionForwardRef);