-
Notifications
You must be signed in to change notification settings - Fork 843
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
[EuiBasicTable] Fix generated IDs regenerating on rerender #5196
[EuiBasicTable] Fix generated IDs regenerating on rerender #5196
Conversation
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.
QA
@@ -762,7 +763,7 @@ export class EuiBasicTable<T = any> extends Component< | |||
<EuiI18n token="euiBasicTable.selectAllRows" default="Select all rows"> | |||
{(selectAllRows: string) => ( | |||
<EuiCheckbox | |||
id={`_selection_column-checkbox_${htmlIdGenerator()()}`} | |||
id={this.selectAllCheckboxId} |
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.
@@ -57,12 +57,12 @@ export const DefaultItemAction = <T extends {}>({ | |||
let button; | |||
const actionContent = | |||
typeof action.name === 'function' ? action.name(item) : action.name; | |||
const ariaLabelId = useGeneratedHtmlId(); |
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.
Preview documentation changes for this PR: https://eui.elastic.co/pr_5196/ |
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.
LGTM 👍
I think it's worth adding a bugfix changelog entry. Rerender behavior is changing so it seems like more than just an "internals" update. If you want to add a single entry that references all the related PRs, I'm good with that.
Sweet, thanks Greg! I'll likely end up using #5195 as the main changelog PR (since it links out to all the other related PRs) and merge this one as-is! |
Summary
closes #3111
Related parent PR:
Checklist
QA screencaps below in code comments.
Changelog will be a single entry in #5195.