Skip to content

Commit

Permalink
refactor: change event target to currentTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
KumJungMin committed Sep 16, 2024
1 parent bf6e034 commit 87d9967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/multiselect/MultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ export const MultiSelect = React.memo(
const removeChip = (event, item) => {
event.stopPropagation();

if (!isVisible(event.target)) return;
if (!isVisible(event.currentTarget)) return;

const value = props.value.filter((val) => !ObjectUtils.equals(val, item, equalityKey));

Expand Down

0 comments on commit 87d9967

Please sign in to comment.