chore: lint
This commit is contained in:
@@ -169,7 +169,7 @@ export const BrowserWindow = () => {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
setHighlighterData(isShadowChild ? data : null);
|
setHighlighterData(isShadowChild ? data : null);
|
||||||
} else if (data.selector.includes('>>') && hasValidChildSelectors) {
|
} else if (data.selector.includes('>>') && hasValidChildSelectors) {
|
||||||
// New case: Handle mixed DOM cases
|
// New case: Handle mixed DOM cases
|
||||||
// Split the selector into parts and check each against child selectors
|
// Split the selector into parts and check each against child selectors
|
||||||
const selectorParts = data.selector.split('>>').map(part => part.trim());
|
const selectorParts = data.selector.split('>>').map(part => part.trim());
|
||||||
@@ -180,18 +180,18 @@ export const BrowserWindow = () => {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
setHighlighterData(isValidMixedSelector ? data : null);
|
setHighlighterData(isValidMixedSelector ? data : null);
|
||||||
} else {
|
} else {
|
||||||
// if !valid child in normal mode, clear the highlighter
|
// if !valid child in normal mode, clear the highlighter
|
||||||
setHighlighterData(null);
|
setHighlighterData(null);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Set highlighterData for the initial listSelector selection
|
// Set highlighterData for the initial listSelector selection
|
||||||
setHighlighterData(data);
|
setHighlighterData(data);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// For non-list steps
|
// For non-list steps
|
||||||
setHighlighterData(data);
|
setHighlighterData(data);
|
||||||
}
|
}
|
||||||
}, [highlighterData, getList, socket, listSelector, paginationMode, paginationType, captureStage]);
|
}, [highlighterData, getList, socket, listSelector, paginationMode, paginationType, captureStage]);
|
||||||
|
|
||||||
|
|
||||||
@@ -407,7 +407,7 @@ export const BrowserWindow = () => {
|
|||||||
color: '#ff00c3 !important',
|
color: '#ff00c3 !important',
|
||||||
borderColor: '#ff00c3 !important',
|
borderColor: '#ff00c3 !important',
|
||||||
backgroundColor: 'whitesmoke !important',
|
backgroundColor: 'whitesmoke !important',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span style={{
|
<span style={{
|
||||||
display: 'block',
|
display: 'block',
|
||||||
|
|||||||
Reference in New Issue
Block a user