-
We need to add onMouseEnter event to ToolbarButton, but it doesn't work. Is there any way to support it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Xidai sine the If you need to enable this urgently, you could try adding a listener on the button inside the shadow-root, you can get the reference by calling |
Beta Was this translation helpful? Give feedback.
Hi @Xidai
sine the
ToolbarButton
is an abstract web component native DOM events are not registered on the correct element in the shadow root.It is not recommended customizing the shadow-root of a component, because internal changes are not subject to semantic versioning, so I'd suggest opening a feature request in the ui5-webcomponents repo explaining your use-case.
If you need to enable this urgently, you could try adding a listener on the button inside the shadow-root, you can get the reference by calling
getDomRef()
on theui5-toolbar-button
element.