Skip to content
Snippets Groups Projects
Commit cb8ef99e authored by Leonardo's avatar Leonardo
Browse files

fix: remove button from popovertrigger

parent 2c490135
No related branches found
No related tags found
No related merge requests found
......@@ -151,15 +151,14 @@ export const PopoverTrigger = React.forwardRef<HTMLElement, React.HTMLProps<HTML
}
return (
<button
<div
ref={ref}
type="button"
// The user can style the trigger based on the state
data-state={context.open ? 'open' : 'closed'}
{...context.interactions.getReferenceProps(props)}
>
{children}
</button>
</div>
);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment