Skip to content

Commit

Permalink
Prevent event propagation when opening Configs and pass additional pa…
Browse files Browse the repository at this point in the history
…rameters to handleOpen
  • Loading branch information
MatinDehghanian committed Jan 17, 2025
1 parent df03d1c commit d46f8ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Configs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ const Configs = ({
return (
<ListItem
key={index}
onClick={() => handleOpen()}
onClick={(e) => {
e.stopPropagation();
handleOpen(title, filteredLinks?.[index], index);
}}
sx={liStyle}
>
<Grid
Expand Down

0 comments on commit d46f8ba

Please sign in to comment.