Skip to content

Commit

Permalink
Fix error with getDisabledElement
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Jul 12, 2022
1 parent bac405a commit c69377f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/components/src/tooltip/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const getDisabledElement = ( {
eventHandlers,
child,
childrenWithPopover,
anchorRef,
mergedRefs,
} ) => {
return cloneElement(
<span className="disabled-element-wrapper">
Expand All @@ -45,7 +45,7 @@ const getDisabledElement = ( {
children: childrenWithPopover,
} ) }
</span>,
{ ...eventHandlers, ref: anchorRef }
{ ...eventHandlers, ref: mergedRefs }
);
};

Expand Down Expand Up @@ -256,7 +256,6 @@ function Tooltip( props ) {
child,
eventHandlers,
childrenWithPopover,
anchorRef: childRef,
mergedRefs: mergedChildRefs,
} );
}
Expand Down

0 comments on commit c69377f

Please sign in to comment.