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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

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.

1 participant