Skip to content

feat(ui5-breadcrumbs-item): introduce click event#13353

Merged
plamenivanov91 merged 7 commits intomainfrom
breadcrumbs-click-event
Apr 16, 2026
Merged

feat(ui5-breadcrumbs-item): introduce click event#13353
plamenivanov91 merged 7 commits intomainfrom
breadcrumbs-click-event

Conversation

@plamenivanov91
Copy link
Copy Markdown
Contributor

Each ui5-breadcrumbs-item now fires a public click CustomEvent (bubbles, cancelable) when activated, allowing framework consumers (React, Angular, Vue) to attach handlers directly on the item instead of listening on the parent ui5-breadcrumbs.

The Breadcrumbs component fires the item-level event before its own item-click event in all three activation paths (visible link, current-page label, overflow list). Preventing the item's click event also suppresses the parent item-click, preserving backward compatibility while enabling the new per-item handler pattern.

Fixes: #13330

Each `ui5-breadcrumbs-item` now fires a public `click` CustomEvent
(bubbles, cancelable) when activated, allowing framework consumers
(React, Angular, Vue) to attach handlers directly on the item instead
of listening on the parent `ui5-breadcrumbs`.

The `Breadcrumbs` component fires the item-level event before its own
`item-click` event in all three activation paths (visible link,
current-page label, overflow list). Preventing the item's `click` event
also suppresses the parent `item-click`, preserving backward
compatibility while enabling the new per-item handler pattern.

Fixes: #13330
@ui5-webcomponents-bot
Copy link
Copy Markdown
Collaborator

ui5-webcomponents-bot commented Apr 1, 2026

🧹 Preview deployment cleaned up: https://pr-13353--ui5-webcomponents.netlify.app

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview April 1, 2026 14:23 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview April 1, 2026 15:10 Inactive
@NakataCode NakataCode self-requested a review April 14, 2026 09:06
Comment thread packages/main/src/BreadcrumbsItem.ts Outdated
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview April 15, 2026 13:43 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview April 15, 2026 14:19 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview April 16, 2026 06:47 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview April 16, 2026 07:37 Inactive
@plamenivanov91 plamenivanov91 merged commit aa36cf2 into main Apr 16, 2026
22 of 23 checks passed
@plamenivanov91 plamenivanov91 deleted the breadcrumbs-click-event branch April 16, 2026 07:59
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview April 16, 2026 07:59 Inactive
@ui5-webcomponents-bot
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version v2.22.0-rc.1 🎉

The release is available on v2.22.0-rc.1

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: BreadcrumbsItem needs semantic click event

3 participants