-
Notifications
You must be signed in to change notification settings - Fork 886
[EuiDataGrid] Fix keyboard navigation not fully scrolling cells into view #5515
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
Changes from 12 commits
4068925
961677c
99b370f
e72953e
51e405d
1e5999b
e3db4f8
bbd7587
b1cd532
2c307ed
91b0e00
9d950a9
d218634
f444d56
a410c56
d4f5293
b7d4cee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -616,7 +616,7 @@ export class EuiDataGridCell extends Component< | |
| ref={this.cellRef} | ||
| {...cellProps} | ||
| data-test-subj="dataGridRowCell" | ||
| data-gridcell-id={`${this.props.rowIndex},${this.props.colIndex}`} | ||
| data-gridcell-id={`${this.props.colIndex},${this.props.visibleRowIndex}`} | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @chandlerprall This is possibly the dicey change in this approach (but unfortunately is necessary, as my entire approach requires being able to obtain the outermost cell DOM node). I changed the order because it's confusingly the opposite of I also changed this from That being said, if that's too big of a change for this PR, maybe we should add a new data attr instead like
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can swap to x,y , but it would be a breaking change (+ Kibana has two affected unit tests) which is okay, and I agree that the x,y pattern fits better. Instead of changing this attribute to be the visible row index, let's use that second
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per our sync call:
|
||
| onKeyDown={handleCellKeyDown} | ||
| onFocus={this.onFocus} | ||
| onMouseEnter={() => { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.