Tradeshift / tradeshift-ui

The Tradeshift UI Library & Framework
https://ui.tradeshift.com
Other
33 stars 45 forks source link

Table onselect not working for the first row #440

Closed ghost closed 6 years ago

ghost commented 7 years ago

Bug report

In addition to this when clicking on the checkbox for the first row the onselect event is not triggering (all other rows seem to work fine)

Tradeshift UI version affected

v9.3.2

Expected Behavior

On ticking the checkbox to select the first row, onselect handler is triggered.

Actual Behavior

On ticking the checkbox to select the firs row, onselect handler is not triggered.

Steps to reproduce

Lookup the ProductCategorization in v4apps. It's main table is generated in this file: https://github.com/Tradeshift/Apps/blob/master/src/main/v4apps/apps/ProductCategorization/src/browser/components/ProductTableUI/ProductTableUI.js

zdlm commented 7 years ago

I tested this on our website, It works fine. http://ui.tradeshift.com/#components/table/selecting.html You can try to run table.onselect = function(selected, unselected) {console.log(selected)}; , and check the console in the browser