Skip to content

Commit

Permalink
Move ref in disabled element to the cloned child element
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Jul 13, 2022
1 parent 5131ea8 commit b903d19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/components/src/tooltip/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ const getDisabledElement = ( {
{ cloneElement( eventCatcher, eventHandlers ) }
{ cloneElement( child, {
children: childrenWithPopover,
ref: mergedRefs,
} ) }
</span>,
{ ...eventHandlers, ref: mergedRefs }
{ ...eventHandlers }
);
};

Expand Down

0 comments on commit b903d19

Please sign in to comment.