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
Tags v1.120.1
No related merge requests found
...@@ -151,15 +151,14 @@ export const PopoverTrigger = React.forwardRef<HTMLElement, React.HTMLProps<HTML ...@@ -151,15 +151,14 @@ export const PopoverTrigger = React.forwardRef<HTMLElement, React.HTMLProps<HTML
} }
return ( return (
<button <div
ref={ref} ref={ref}
type="button"
// The user can style the trigger based on the state // The user can style the trigger based on the state
data-state={context.open ? 'open' : 'closed'} data-state={context.open ? 'open' : 'closed'}
{...context.interactions.getReferenceProps(props)} {...context.interactions.getReferenceProps(props)}
> >
{children} {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