Skip to content

[EuiSuperDatePicker] Fix multiple IDs regenerating on rerender#5200

Merged
cee-chen merged 3 commits intoelastic:masterfrom
cee-chen:use-generated-html-id-super-date-picker
Sep 21, 2021
Merged

[EuiSuperDatePicker] Fix multiple IDs regenerating on rerender#5200
cee-chen merged 3 commits intoelastic:masterfrom
cee-chen:use-generated-html-id-super-date-picker

Conversation

@cee-chen
Copy link
Copy Markdown
Contributor

Summary

Parent PR:

Checklist

QA screencaps below in code comments.

Changelog will be added in a single entry in #5195.

@cee-chen cee-chen added skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) tech debt labels Sep 20, 2021
};

generateId = htmlIdGenerator();
relativeDateInputNumberDescriptionId = htmlIdGenerator()();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before:

relative_number_before

After:

relative_number_after

commonlyUsedRanges,
}) => {
const legendId = generateId();
const legendId = useGeneratedHtmlId();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before:

commonly_used_before

After:

commonly_used_after

recentlyUsedRanges = [],
}) => {
const legendId = generateId();
const legendId = useGeneratedHtmlId();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before:

recently_used_before

After:

recently_used_after

Comment on lines +80 to +81
timeSelectionId = this.generateId();
legendId = this.generateId();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before:

quick_select_before

After:

recently_used_after

Comment on lines +93 to +94
legendId = this.generateId();
refreshSelectionId = this.generateId();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before:

refresh_interval_before

After:

refresh_interval_after

@cee-chen cee-chen marked this pull request as ready for review September 20, 2021 16:49
@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_5200/

Copy link
Copy Markdown
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦸 📅 ⛏️

@cee-chen cee-chen merged commit 841ed6f into elastic:master Sep 21, 2021
@cee-chen cee-chen deleted the use-generated-html-id-super-date-picker branch September 21, 2021 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) tech debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants