-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Table] onRowSelection fires twice after initial selection #4385
Comments
There also seems to be an issue with the table intercepting other events. I have a raised button with an 'onClick' handler that will currently only list items that are selected. When I fire it I'm seeing the |
Definitely saw this in my implementation just now @jaybkun. Pretty infuriating. |
@jaybkun I am seeing the second issue you posted with the table intercepting other events. Do you think the two are related, or should we open a new thread with that issue? |
Scratch that, the issue I thought I was seeing was because I had left the
@jaybkun See if this fixes your issue. |
I can confirm this, if you press the 'Select All' checkbox while it's already selected, you will receive two callback fires. []
all |
Any updates? |
@maxdeviant |
This is happening with me again. onRowSelection is getting fired twice if I select/deselect all. |
Same here |
We have been porting the component on the v1-beta branch. We reimplemented it from the ground-up. While we haven't tested it, I think that the issue is most likely fixed on that branch. Hence, I'm closing it. |
Problem description
I have a handler for the
onRowSelection
event on a table. The handler sets aitem.selected
flag on an array of objects in my state object. I cannot deselect using the toggle all button if there is anything on the tableSteps to reproduce
Create an empty array object in state
Use the following form to populate the table when items are added to thelist
Have an event handler for the row selection
Add items to the list
Click the 'select all' toggle
Click the 'select all' toggle again
Versions
The text was updated successfully, but these errors were encountered: