Skip to content

Commit

Permalink
Update DropdownMenu.js
Browse files Browse the repository at this point in the history
consistent naming...
  • Loading branch information
JohnC-80 authored Feb 21, 2025
1 parent 4755e15 commit d7f23d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/DropdownMenu/DropdownMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const DropdownMenu = ({ overrideStyle = {}, ...rest }) => {
} = props;

const ref = useRef(null);
const handleOutsideClick = useCallback((e, outside) => outside && onToggle(), [onToggle]);
useClickOutside(ref, open ? handleOutsideClick : noop);
const handleClickOutside = useCallback((e, outside) => outside && onToggle(), [onToggle]);
useClickOutside(ref, open ? handleClickOutside : noop);

const renderChildren = () => {
// don't pass along props that we didn't receive. if the
Expand Down

0 comments on commit d7f23d1

Please sign in to comment.