fix(ui5-list): add private selectionWhileInactive property - #13959
fix(ui5-list): add private selectionWhileInactive property#13959dobrinyonkov wants to merge 3 commits into
Conversation
Adds a new private _selectionWhileInactive boolean property to ui5-list (default false). When set, propagates to all list items via prepareListItems(). On ui5-li items with type="Inactive", clicking or using Space/Enter now toggles selection (checkbox/radio) without firing the item-click event. This lays the groundwork for a public API in the next major version.
👋 Heads-up: dev close is in effectThanks for the contribution! This repository is currently in dev close ahead of release This PR appears to introduce public-API changes (detected by diffing the Custom Elements Manifest against the latest published version on npm):
Could you please hold off on merging into If this change must ship in the current release, please request a review from one or two members of @UI5/ui5-team-webc so the team can sign off explicitly.
Posted automatically by the Dev Close Notice workflow. |
|
🚀 Deployed on https://pr-13959--ui5-webcomponents-preview.netlify.app |
|
FYI, @UI5/ui5-team-webc - this change is flagged as "introduces public-API changes" but it only adds a private member |
|
closing duo #13962 |
|
🧹 Preview deployment cleaned up: https://pr-13959--ui5-webcomponents.netlify.app |
Summary
_selectionWhileInactiveboolean property toui5-list(defaultfalse)prepareListItems()ui5-liitems withtype="Inactive", clicking or using Space/Enter now toggles selection (checkbox/radio) without firing theitem-clickeventUsage
Test plan
type="Inactive"on list items with a selection mode — verify selection toggles on click/keyboarditem-clickis NOT fired for inactive items