feat: check for paginationType in handleClick
This commit is contained in:
@@ -191,9 +191,11 @@ export const BrowserWindow = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (paginationMode && getList) {
|
if (paginationMode && getList) {
|
||||||
setPaginationSelector(highlighterData.selector)
|
// Only allow selection in pagination mode if type is not empty, 'scrollDown', or 'scrollUp'
|
||||||
// In pagination mode, treat any selection as the pagination selector
|
if (paginationType !== '' && paginationType !== 'scrollDown' && paginationType !== 'scrollUp') {
|
||||||
addListStep(listSelector!, fields, currentListId || 0, { type: paginationType, selector: paginationSelector });
|
setPaginationSelector(highlighterData.selector);
|
||||||
|
addListStep(listSelector!, fields, currentListId || 0, { type: paginationType, selector: highlighterData.selector });
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user