Skip to content

Commit

Permalink
fix: prevent event bubbling when dropdown click
Browse files Browse the repository at this point in the history
  • Loading branch information
KumJungMin committed Oct 8, 2024
1 parent e23e534 commit 139a989
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/lib/dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export const Dropdown = React.memo(
return;
}

event.stopPropagation();
props.onClick && props.onClick(event);

// do not continue if the user defined click wants to prevent it
Expand Down

0 comments on commit 139a989

Please sign in to comment.