feat: handleClick case for pagination selection

This commit is contained in:
karishmas6
2024-09-02 02:36:47 +05:30
parent 97b1012a86
commit 656a82c864

View File

@@ -130,6 +130,11 @@ export const BrowserWindow = () => {
) {
const options = getAttributeOptions(highlighterData.elementInfo?.tagName || '', highlighterData.elementInfo);
if (isSelectingPagination) {
socket?.emit('paginationSelected', { selector: highlighterData.selector });
setIsSelectingPagination(false);
}
if (getText === true) {
if (options.length === 1) {
// Directly use the available attribute if only one option is present