From 656a82c8644a561a37fad1285b840793c3e968b5 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 2 Sep 2024 02:36:47 +0530 Subject: [PATCH] feat: handleClick case for pagination selection --- src/components/organisms/BrowserWindow.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/organisms/BrowserWindow.tsx b/src/components/organisms/BrowserWindow.tsx index 10b11179..eaa82cc6 100644 --- a/src/components/organisms/BrowserWindow.tsx +++ b/src/components/organisms/BrowserWindow.tsx @@ -130,6 +130,11 @@ export const BrowserWindow = () => { ) { const options = getAttributeOptions(highlighterData.elementInfo?.tagName || '', highlighterData.elementInfo); + if (isSelectingPagination) { + socket?.emit('paginationSelected', { selector: highlighterData.selector }); + setIsSelectingPagination(false); + } + if (getText === true) { if (options.length === 1) { // Directly use the available attribute if only one option is present