-
Notifications
You must be signed in to change notification settings - Fork 2
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
Do not call onConfirmRow when Enter is pressed in DataTable row children #1574
Conversation
wrapper.find('tbody tr a').first().simulate('keydown', { key: 'Enter' }); | ||
|
||
assert.notCalled(onConfirmRow); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test fails without the changes introduced in DataTable
, while the test above keeps passing.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1574 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 62 62
Lines 1041 1041
Branches 397 397
=========================================
Hits 1041 1041 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks sensible, but I think the comment could do a better job of explaining the why rather than what of the logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks sensible, but I think the comment could do a better job of explaining the why rather than what of the logic.
4d9d82b
to
6b4785e
Compare
This PR fixes a bug where elements that can be interacted with Enter key would stop the event propagation when rendered inside a
DataTable
row, viarenderItem
.