FROM CACHE - en_header

How to make Polaris Index table not trigger onSelectionChange event

vitohuang
Shopify Partner
6 0 0

I have an Index table to display my data, within the row, I had a Link component that will link to another page and a button

Screenshot 2021-08-18 at 11.08.14.png

However the Link doesn't work - it does not go to the link URL

And the onClick on the button will trigger and then it will propagate the click event to Index table's OnSelectionChange

So I'm just wondering anyone knows how to stop the button onClick event propagate or stop onSelectionChange when its not actually click on the checkbox?

Thanks

Replies 0 (0)