You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…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
Bug Description
When calling
getDomRef()
on aui5-toolbar-button
it always returnsundefined
.This is a followup issue to this one: #9997
Affected Component
ToolbarButton
Expected Behaviour
It should return the DOM reference to the
ui5-button
inside the shadow root of the ui5-toolbar, as the ToolbarButton is an abstract component.Isolated Example
https://stackblitz.com/edit/github-k8annj?file=index.html,package.json,main.js
Steps to Reproduce
undefined
in the consoleLog Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
2.3.0
Browser
Chrome, Edge, Firefox, Safari
Operating System
No response
Additional Context
No response
Organization
UI5WCR
Declaration
The text was updated successfully, but these errors were encountered: