Skip to content

Commit

Permalink
fix(popover): fix trigger className and style of popover (#1558)
Browse files Browse the repository at this point in the history
Co-authored-by: maxin <maxin@growingio.com>
  • Loading branch information
nnmax and maxin committed Nov 30, 2021
1 parent e838324 commit 32de45b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ const Popover = (props: PopoverProps) => {
if (supportRef(children)) {
const cloneProps = {
...divRoles,
className: classNames((children as React.ReactElement)?.props?.className),
style: { ...(children as React.ReactElement)?.props?.style, ...overlayInnerStyle },
className: classNames((children as React.ReactElement)?.props?.className, triggerClassName),
style: { ...(children as React.ReactElement)?.props?.style, ...triggerStyle },
};

const child = React.Children.only(children);
Expand Down

1 comment on commit 32de45b

@vercel
Copy link

@vercel vercel bot commented on 32de45b Nov 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.