feat: show highlighter if !showAttributeModal

This commit is contained in:
karishmas6
2024-08-04 03:41:39 +05:30
parent 195d3a74ba
commit 79b8ad9952
2 changed files with 3 additions and 1 deletions

View File

@@ -20,6 +20,8 @@ export const ActionSettings = ({ action }: ActionSettingsProps) => {
return <Settings.ScreenshotSettings ref={settingsRef} />;
case 'scroll':
return <Settings.ScrollSettings ref={settingsRef} />;
case 'scrape':
return <Settings.ScrapeSettings ref={settingsRef} />;
case 'scrapeSchema':
return <Settings.ScrapeSchemaSettings ref={settingsRef} />;
default:

View File

@@ -179,7 +179,7 @@ export const BrowserWindow = () => {
</GenericModal>
) : null
}
{(getText === true && highlighterData?.rect != null && highlighterData?.rect.top != null) && canvasRef?.current ?
{(getText === true && !showAttributeModal && highlighterData?.rect != null && highlighterData?.rect.top != null) && canvasRef?.current ?
<Highlighter
unmodifiedRect={highlighterData?.rect}
displayedSelector={highlighterData?.selector}