Skip to content

Commit

Permalink
fix: Popover return
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverEllipsis committed Nov 12, 2024
1 parent 9060756 commit 2981859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bui-core/src/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { PopoverProps } from './Popover.types';

const prefixCls = 'bui-popover';

const Popover = React.forwardRef<HTMLElement, PopoverProps>((props, ref) => {
const Popover = React.forwardRef<HTMLDivElement, PopoverProps>((props, ref) => {
const {
className,
style,
Expand Down Expand Up @@ -83,7 +83,7 @@ const Popover = React.forwardRef<HTMLElement, PopoverProps>((props, ref) => {
changeOpenStatus(event, true);
};

if (!(title || content)) return children;
if (!title && !content) return null;

const triggerEventOption = triggerEventTransform({
trigger,
Expand Down

0 comments on commit 2981859

Please sign in to comment.