From d46f8ba3ab5d208cd310caf9b5c552c3ce4d26a0 Mon Sep 17 00:00:00 2001 From: Matin Dehghanian Date: Fri, 17 Jan 2025 13:06:21 +0330 Subject: [PATCH] Prevent event propagation when opening Configs and pass additional parameters to handleOpen --- src/components/Configs.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Configs.jsx b/src/components/Configs.jsx index 8ae6b24..2681ad6 100644 --- a/src/components/Configs.jsx +++ b/src/components/Configs.jsx @@ -88,7 +88,10 @@ const Configs = ({ return ( handleOpen()} + onClick={(e) => { + e.stopPropagation(); + handleOpen(title, filteredLinks?.[index], index); + }} sx={liStyle} >