Skip to content

Commit

Permalink
Update Dropdown.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek committed Jun 3, 2024
1 parent 4dab464 commit eb19d87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/client/src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ function Dropdown({ children }: DropdownProps) {
});

const click = useClick(context);
const dismiss = useDismiss(context, { ancestorScroll: true });
const dismiss = useDismiss(context, {
ancestorScroll: true,
bubbles: true,
referencePress: true,
});

const { getReferenceProps, getFloatingProps } = useInteractions([click, dismiss]);

Expand Down

0 comments on commit eb19d87

Please sign in to comment.