Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeldking committed Jan 14, 2025
1 parent 86141e4 commit 99d5081
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ export interface PopoverProps extends HTMLAttributes<HTMLElement> {

function Popover(props: PopoverProps, ref: DOMRef<HTMLDivElement>) {
const {
placement = 'bottom',
placement: propPlacement,
children,
isOpen = false,
onClose,
shouldCloseOnBlur = true,
style,
...otherProps
} = props;
const placement = propPlacement || 'bottom';
const domRef = useDOMRef(ref);
// Handle interacting outside the popover and pressing
// the Escape key to close the modal.
Expand Down

0 comments on commit 99d5081

Please sign in to comment.