-
Notifications
You must be signed in to change notification settings - Fork 279
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
base: main
Are you sure you want to change the base?
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.
LGTM
@@ -265,6 +270,14 @@ class ViewSettingsDialog extends UI5Element { | |||
} | |||
} | |||
|
|||
onAfterRendering() { | |||
if (this.isModeFilter) { | |||
renderFinished().then(() => { |
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.
if it's onAfterRendering, can't we assume that the render is finished?
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.
We cannot guarantee that child elements are rendered. I test it without renderFinished() and the focus is not working.
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.
Let's find a way to escape the "renderFinished" then
Fixes: #10555