diff --git a/src/components/browser/BrowserWindow.tsx b/src/components/browser/BrowserWindow.tsx index 7dd8b2cf..769e9048 100644 --- a/src/components/browser/BrowserWindow.tsx +++ b/src/components/browser/BrowserWindow.tsx @@ -1686,6 +1686,12 @@ export const BrowserWindow = () => { } }, [paginationMode, resetPaginationSelector]); + useEffect(() => { + if (!paginationMode || !getList) { + setHighlighterData(null); + } + }, [paginationMode, getList]); + useEffect(() => { if (paginationMode && currentListActionId) { const currentListStep = browserSteps.find( @@ -1841,7 +1847,7 @@ export const BrowserWindow = () => { > {/* Individual element highlight (for non-group or hovered element) */} {((getText && !listSelector) || - (getList && paginationMode && paginationType !== "" && + (getList && paginationMode && !paginationSelector && paginationType !== "" && !["none", "scrollDown", "scrollUp"].includes(paginationType))) && (