diff --git a/src/components/organisms/BrowserWindow.tsx b/src/components/organisms/BrowserWindow.tsx index afd16c92..08cae087 100644 --- a/src/components/organisms/BrowserWindow.tsx +++ b/src/components/organisms/BrowserWindow.tsx @@ -111,7 +111,7 @@ export const BrowserWindow = () => { clickY >= highlightRect.top && clickY <= highlightRect.bottom ) { - if (getText === true) { + if (getText === true || getList === true) { const options = getAttributeOptions(highlighterData.elementInfo?.tagName || ''); if (options.length > 1) { setAttributeOptions(options); @@ -146,7 +146,7 @@ export const BrowserWindow = () => { data = selectedElement.info?.innerText || ''; } { - if (getText === true) { + if (getText === true || getList === true) { addTextStep('', data, { selector: selectedElement.selector, tag: selectedElement.info?.tagName, @@ -161,7 +161,7 @@ export const BrowserWindow = () => { return (
{ - getText === true ? ( + getText === true || getList === true ? ( { }} @@ -179,7 +179,7 @@ export const BrowserWindow = () => { ) : null } - {(getText === true && !showAttributeModal && highlighterData?.rect != null && highlighterData?.rect.top != null) && canvasRef?.current ? + {((getText === true || getList === true) && !showAttributeModal && highlighterData?.rect != null && highlighterData?.rect.top != null) && canvasRef?.current ?