-
Notifications
You must be signed in to change notification settings - Fork 273
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
fix(ui5-table): fix row navigation and focus handling #876
Conversation
cf300c7
to
1d0950b
Compare
packages/main/src/TableRow.js
Outdated
@@ -80,6 +107,11 @@ class TableRow extends UI5Element { | |||
return; | |||
} | |||
|
|||
this.cells.forEach(cell => { | |||
cell.removeEventListener("click", this.fnOnCellClick); |
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.
you better fire some event from the cell and rely on bubbling so you can catch it in the Row
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.
Done
packages/main/src/Table.js
Outdated
@@ -210,6 +210,10 @@ class Table extends UI5Element { | |||
} | |||
} | |||
|
|||
onColumnHeaderClick() { | |||
this.getDomRef().querySelector(`#${this._id}-columnHeader`).focus(); |
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.
i wish we make this part of the item navigation but its fine for now
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.
Done.
Fixes: #861