From 186d4822821411b5433b579fa1a549803181eaf4 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 21 Aug 2024 22:12:24 +0530 Subject: [PATCH] feat: pass highlighterData.elementInfo during handleClick --- src/components/organisms/BrowserWindow.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/organisms/BrowserWindow.tsx b/src/components/organisms/BrowserWindow.tsx index ae5cc2f3..77a027da 100644 --- a/src/components/organisms/BrowserWindow.tsx +++ b/src/components/organisms/BrowserWindow.tsx @@ -121,7 +121,7 @@ export const BrowserWindow = () => { clickY <= highlightRect.bottom ) { if (getText === true) { - const options = getAttributeOptions(highlighterData.elementInfo?.tagName || ''); + const options = getAttributeOptions(highlighterData.elementInfo?.tagName || '', highlighterData.elementInfo); if (options.length > 1) { setAttributeOptions(options); setSelectedElement({ @@ -141,7 +141,7 @@ export const BrowserWindow = () => { if (getList === true && !listSelector) { setListSelector(highlighterData.selector); } else if (getList === true && listSelector) { - const options = getAttributeOptions(highlighterData.elementInfo?.tagName || ''); + const options = getAttributeOptions(highlighterData.elementInfo?.tagName || '', highlighterData.elementInfo); if (options.length > 1) { setAttributeOptions(options); setSelectedElement({