tabulator
tabulator copied to clipboard
Fixing De-Selection after selecting all rows
Depending of the source of calling _deselectRow the selectedRow in this comparison could be a either a Row or a Row encapsulated into a Proxy (Proxy(Row)). You can reproduce this behavior as followed:
Scenario 1 (working)
- Select a certain row
- Deselect that row
Here it will compare Proxy(Row) with Proxy(Row) and it would behave as expected.
Scenario 2 (not working)
- Use the Select All feature of the table header, for selecting all rows
- Deselect one of the Rows from the table
Now it will compare Row with Proxy(Row) and therefor the the comparison will fail. This is leading to the next code block is completely ignored, the deselection is not applied and the deselection event is not fired.
Although It would be better to find the source for the different contents of selectedRows this can be a possible quick fix to avoid that bug.