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
Describe the bug
interactive ui5-icon fires two 'click' event on one click action. One is fired with CustomEvent and another one is fired with native MouseEvent (bubbled from internal svg).
To reproduce
Steps to reproduce the behavior:
The event hander is attached in either <ui5-icon onClick={handler}></ui5-icon>
or icondom.addEventListener('click', handler)
Upon clicking on the icon, the handler is executed twice. If focusing and entering Space, the handler is executed only once with the CustomEvent.
If the event handler is attached to noConflict event, the handler is executed only once as expected. icondom.addEventListener('ui5-click', handler)
Expected behavior
ui5-icon should fire click event once with CustomEvent upon clicking on the icon.
Context
UI5 Web Components version: 0.29.1
Affected components (if known)
ui5-icon
The text was updated successfully, but these errors were encountered:
We used to fire a custom event, but did not stop the native one and end up with firing two "click" events.
Now, the native one is stopped properly (we need to fire the custom one, so the noConflict ui5-click is also fired). Also, one additional fix has been performed - the content no longer scrolls when the SPACE key is pressed over "interactive" icon.
FIXES: #2857
We used to fire a custom event, but did not stop the native one and end up with firing two "click" events.
Now, the native one is stopped properly (we need to fire the custom one, so the noConflict ui5-click is also fired). Also, one additional fix has been performed - the content no longer scrolls when the SPACE key is pressed over "interactive" icon.
FIXES: #2857
We used to fire a custom event, but did not stop the native one and end up with firing two "click" events.
Now, the native one is stopped properly (we need to fire the custom one, so the noConflict ui5-click is also fired). Also, one additional fix has been performed - the content no longer scrolls when the SPACE key is pressed over "interactive" icon.
FIXES: #2857
Describe the bug
interactive ui5-icon fires two 'click' event on one click action. One is fired with CustomEvent and another one is fired with native MouseEvent (bubbled from internal svg).
To reproduce
Steps to reproduce the behavior:
The event hander is attached in either
<ui5-icon onClick={handler}></ui5-icon>
or
icondom.addEventListener('click', handler)
Upon clicking on the icon, the handler is executed twice. If focusing and entering Space, the handler is executed only once with the CustomEvent.
If the event handler is attached to noConflict event, the handler is executed only once as expected.
icondom.addEventListener('ui5-click', handler)
Expected behavior
ui5-icon should fire click event once with CustomEvent upon clicking on the icon.
Context
UI5 Web Components version: 0.29.1
Affected components (if known)
ui5-icon
The text was updated successfully, but these errors were encountered: