Skip to content

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

Open
plamenivanov91 wants to merge 2 commits intomainfrom
breadcrumbs-click-event
Open

feat(ui5-breadcrumbs-item): introduce click event#13353
plamenivanov91 wants to merge 2 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

@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
* @param {boolean} metaKey Returns whether the "META" key was pressed when the event was triggered.
* @param {boolean} shiftKey Returns whether the "SHIFT" key was pressed when the event was triggered.
* @public
* @since 2.10.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update the since version

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.

[Feature Request]: BreadcrumbsItem needs semantic click event

3 participants