feat: pass highlighterData.elementInfo during handleClick
This commit is contained in:
@@ -121,7 +121,7 @@ export const BrowserWindow = () => {
|
|||||||
clickY <= highlightRect.bottom
|
clickY <= highlightRect.bottom
|
||||||
) {
|
) {
|
||||||
if (getText === true) {
|
if (getText === true) {
|
||||||
const options = getAttributeOptions(highlighterData.elementInfo?.tagName || '');
|
const options = getAttributeOptions(highlighterData.elementInfo?.tagName || '', highlighterData.elementInfo);
|
||||||
if (options.length > 1) {
|
if (options.length > 1) {
|
||||||
setAttributeOptions(options);
|
setAttributeOptions(options);
|
||||||
setSelectedElement({
|
setSelectedElement({
|
||||||
@@ -141,7 +141,7 @@ export const BrowserWindow = () => {
|
|||||||
if (getList === true && !listSelector) {
|
if (getList === true && !listSelector) {
|
||||||
setListSelector(highlighterData.selector);
|
setListSelector(highlighterData.selector);
|
||||||
} else if (getList === true && listSelector) {
|
} else if (getList === true && listSelector) {
|
||||||
const options = getAttributeOptions(highlighterData.elementInfo?.tagName || '');
|
const options = getAttributeOptions(highlighterData.elementInfo?.tagName || '', highlighterData.elementInfo);
|
||||||
if (options.length > 1) {
|
if (options.length > 1) {
|
||||||
setAttributeOptions(options);
|
setAttributeOptions(options);
|
||||||
setSelectedElement({
|
setSelectedElement({
|
||||||
|
|||||||
Reference in New Issue
Block a user