Skip to content

fix(ui5-icon): suppress native click propagation for Image mode - #13997

Open
NakataCode wants to merge 2 commits into
mainfrom
icon-stop-propagation-non-interactive
Open

fix(ui5-icon): suppress native click propagation for Image mode#13997
NakataCode wants to merge 2 commits into
mainfrom
icon-stop-propagation-non-interactive

Conversation

@NakataCode

@NakataCode NakataCode commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Non-interactive Image mode already suppressed the ui5-click custom event, but the native click still bubbled up to the host, making the icon appear clickable to parent listeners.

Calls e.stopPropagation() in _onclick for Image mode before returning, aligning runtime behavior with the documented @event("click") specification.

Fixes: #13972

@NakataCode
NakataCode deployed to netlify-preview August 28, 2026 10:17 — with GitHub Actions Active
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

@NakataCode
NakataCode deployed to netlify-preview August 28, 2026 10:41 — with GitHub Actions Active
@NakataCode NakataCode changed the title fix(ui5-icon): suppress native click propagation for non-interactive modes fix(ui5-icon): suppress native click propagation for Image mode Aug 28, 2026
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.

[icons]: Icon mode="Image" announced as clickable and opens a dialog

1 participant