Skip to content

Commit

Permalink
Fix(web-react): Remove unnecessary rest props on Tooltip Trigger #DS-…
Browse files Browse the repository at this point in the history
…1150

Also fix same id in demo.
  • Loading branch information
crishpeen committed Feb 13, 2024
1 parent 7cfdc20 commit b7c145f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const TooltipTrigger = (props: TooltipTriggerProps) => {
const { styleProps: triggerStyleProps, props: transferProps } = useStyleProps(rest);

return (
<Component {...transferProps} {...triggerStyleProps} id={id} {...rest} ref={triggerRef} {...getReferenceProps()}>
<Component {...transferProps} {...triggerStyleProps} id={id} ref={triggerRef} {...getReferenceProps()}>
{typeof children === 'function' ? children({ isOpen }) : children}
</Component>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const TooltipDismissible = () => {

return (
<div className="docs-Stack docs-Stack-stretch spirit-feature-tooltip-enable-data-placement">
<TooltipModern id="TooltipDismissibleViaJS" isOpen={open} onToggle={setOpen} placement="right" isDismissible>
<TooltipModern id="TooltipDismissible" isOpen={open} onToggle={setOpen} placement="right" isDismissible>
<TooltipTrigger elementType={Button}>I have a tooltip 😎</TooltipTrigger>
<TooltipPopover>Close me</TooltipPopover>
</TooltipModern>
Expand Down

0 comments on commit b7c145f

Please sign in to comment.