You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@benjycui Before add hideDefaultSelections ,selections of rowSelection add all and invert in the beginning, so custom selection start index is greater than 1. When hideDefaultSelections is true, the custom selection start index should be equal or greater than 0 😆.
Version
2.13.1
Environment
Windows 10, Chrome 60.0.3112.113
Reproduction link
https://codepen.io/anon/pen/NaqMom
Steps to reproduce
rowSelection
prop containinghideDefaultSelections: true
and at least three custom selections.What is expected?
onSelect
inrowSelections.selections[0]
androwSelections.selections[1]
should fire when the corresponding option is clicked.What is actually happening?
onSelect
is not triggered for the first two options.I have provided a Codepen-link for minimal reproduction, but the bug also happens in this example on the official page: https://ant.design/components/table/#components-table-demo-row-selection-custom
The text was updated successfully, but these errors were encountered: