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-toolbar-button): ensure getDomRef() returns the actual DOM reference #10009

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

Conversation

kgogov
Copy link
Member

@kgogov kgogov commented Oct 11, 2024

This commit fixes the issue where getDomRef() on ui5-toolbar-button was returning undefined by providing a custom implementation that correctly returns the DOM reference to the actual ui5-button element rendered within the ui5-toolbar's shadow DOM. This enhancement ensures that developers can reliably interact with the toolbar button's DOM element.

Notes:

  • This fix assumes that ui5-toolbar-button is a direct child of ui5-toolbar.
  • If the component hierarchy changes, additional checks may be necessary to ensure the parent toolbar is correctly identified.

Fixes: #9996

…ference

This commit fixes the issue where `getDomRef()` on `ui5-toolbar-button`
was returning `undefined` by providing a custom implementation that
correctly returns the DOM reference to the actual `ui5-button` element
rendered within the `ui5-toolbar`'s shadow DOM. This enhancement ensures
that developers can reliably interact with the toolbar button's DOM
element.

**Notes:**
- This fix assumes that `ui5-toolbar-button` is a direct child of
  `ui5-toolbar`.
- If the component hierarchy changes, additional checks may be necessary
  to ensure the parent toolbar is correctly identified.

Fixes: #9996
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.

[ToolbarButton]: getDomRef returns undefined
1 participant