From fa29ed3bbde27d7b27e123b2fb26fe44bf002f57 Mon Sep 17 00:00:00 2001 From: Nuzhy-Deriv Date: Fri, 9 Aug 2024 16:18:55 +0800 Subject: [PATCH] fix: close the dropdown for same contract selection --- .../app/pages/trade/markets/contracts-dropdown.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/javascript/app/pages/trade/markets/contracts-dropdown.jsx b/src/javascript/app/pages/trade/markets/contracts-dropdown.jsx index 36cc90aa31a..4a533e3f95c 100644 --- a/src/javascript/app/pages/trade/markets/contracts-dropdown.jsx +++ b/src/javascript/app/pages/trade/markets/contracts-dropdown.jsx @@ -13,7 +13,10 @@ export const ContractDropdown = () => { const closeDropdownTimer = useRef(); const onContractClick = (formName) => { - if (formName === data?.formName) { return; } + if (formName === data?.formName) { + close(); + return; + } const contractElement = data?.contractElement;