Skip to content
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-popover): fix opener reference #10507

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Conversation

ilhan007
Copy link
Member

@ilhan007 ilhan007 commented Jan 9, 2025

Previously the Popover's code assumed that if the opener is an UI5Element, then the DOM ref of the opener is the result of the getFocusDomRef method, which is not always the case.
There are also noticeable misalignments of the popover that are caused by this fact. For example here the popover is shifted as it's aligned with the inner input (the focus dom ref):

Screenshot 2025-01-09 at 18 09 28

With this change, the popover will use the getFocusDomRef oof the opener, only if the opener is abstract UI5Element,
with no effect on the rest of the cases.

Screenshot 2025-01-09 at 18 10 35

@ilhan007 ilhan007 merged commit a38a28e into main Jan 13, 2025
10 checks passed
@ilhan007 ilhan007 deleted the fix-popover-opener-domref branch January 13, 2025 09:40
ilhan007 added a commit that referenced this pull request Jan 13, 2025
Previously the Popover's code assumed that if the opener is an UI5Element, then the DOM ref of the opener is the result of the `getFocusDomRef` method, which is not always the case.
With this change, the popover will use the getFocusDomRef oof the opener, only if the opener is abstract UI5Element,
 with no effect on the rest of the cases.
@ui5-webcomponents-bot
Copy link
Collaborator

🎉 This PR is included in version v2.7.0-rc.0 🎉

The release is available on v2.7.0-rc.0

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants