-
Notifications
You must be signed in to change notification settings - Fork 380
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
[Bug] EditingState onDeletedRowIdsChange does not pass row ID as parameter #1223
Comments
Hi, Thank you for pointing out to this issue. The Currently, a click on the 'Delete' button immediately commits rows to be deleted. Please refer to this demo to see how to delete rows in controlled mode. |
@SergeyAlexeev Would this be why deletedRowIds and onDeletedRowIds are not part of the Typescript definition for EditingState? |
Yes, it is. |
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. |
I'm using ...
Example
https://codesandbox.io/s/q8o40kn474
Current Behaviour
Clicking an 'edit' button passes the row ID as a parameter to the
onEditingRowIdsChange
event. Clicking a 'delete' button passes nothing to theonDeletedRowIdsChange
event, and callsonCommitChanges
Expected Behaviour
Clicking a 'delete' button passes the row ID as a parameter to the
onDeletedRowIdsChange
, and does not immediately callonCommitChanges
when in controlled modeTemporary Workaround
and in the Confirmation Dialog event handlers
The text was updated successfully, but these errors were encountered: