Skip to content

[ToolbarButton] Does v2 ToolbarButton support other events like onMouseEnter? #6620

Answered by Lukas742
Xidai asked this question in Q&A
Discussion options

You must be logged in to vote

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 the ui5-toolbar-button element.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Xidai
Comment options

Answer selected by Xidai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants