I was playing around with the new CustomerCenterList component and realised that when we use the onclick property, it adds the onclick attribute to all <td>s except for the last one.
I went and looked at the component code and it seems like this was done intentionally:
string columnClick = columnCount < (totalColumns-1) ? "onclick=\"" + listItem.OnClick + "\"" : ""; <td @ComponentMethods.AddAttributes(infoAttributes) @columnClick class="data-list__info-item dw-mod">ยด~
I'm curious as to why this is done like this? Why would we want to apply the onclick property on all cells except for the last one?
Or is this a bug?