Skip to content

fix(ui5-view-settings-dialog): initially focus first item in filter options #12065

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

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

GDamyanov
Copy link
Contributor

Fixes: #10555

@GDamyanov GDamyanov requested a review from unazko August 5, 2025 07:07
@GDamyanov GDamyanov self-assigned this Aug 6, 2025
@GDamyanov GDamyanov requested a review from unazko August 7, 2025 11:18
Copy link
Contributor

@unazko unazko left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -265,6 +270,14 @@ class ViewSettingsDialog extends UI5Element {
}
}

onAfterRendering() {
if (this.isModeFilter) {
renderFinished().then(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

if it's onAfterRendering, can't we assume that the render is finished?

Copy link
Contributor Author

@GDamyanov GDamyanov Aug 8, 2025

Choose a reason for hiding this comment

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

We cannot guarantee that child elements are rendered. I test it without renderFinished() and the focus is not working.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's find a way to escape the "renderFinished" then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SF][A11Y][ViewSettingsDialog] The keyboard navigation order is unexpected.
3 participants