Bug in tables with pagination with onCellSelect()

When you have a table with pagination, if you go to after the first page, the onCellSelect event does not work. It only works on the first page.

1 Like

Please post the editor URL of your site. Only authorized Wix personnel can get access to your site in the editor. Please include the name of the page involved.

It’s the only page. Try clicking hashtags and you will see adds below. When you do with the second page it doesn’t work. Function is below. Sorry for the poorly named objects. Also, not sure if that link is the one you are referring to.

export function table1_cellSelect(event, $w) {
$w(‘#text7’).text = $w(‘#text7’).text.concat(" #" + event.cellData);
}

@yisrael-wix do you mind letting me know if this a bug or something I’m doing wrong? I don’t think I’m doing anything wrong.

Hi,
We are inspecting it and keep you updated in this thread.
Roi.

There does in fact appear to be a bug in the pagination behavior. I’ve opened a ticket on this.

Thanks for looking into it!

@yisrael-wix Any update on this issue? We’re still having an issue with it on our website

Hey guys, this is still a bug. The same error is happening, pagination doesn’t trigger the onCellSelect() event handler after page1.

I suppose it is a bug. The pagination react tries to fetch from .data property and not .rows on OnCellSelect.
Workaround. Keep the Table with no pagination and use the Pagination element. OnChange event load the table with more rows from the data
Pagination.totalpages = Math.ceil(data.length / pagesize)
table.rows = data.slice( (pagenumber-1)pagesize, pagenumberpagesize)