Skip to content

fix(ui5-list): restore keyboard and body selection for InactiveSelectable items - #14045

Open
dobrinyonkov wants to merge 1 commit into
release-2.25.1from
downport/list-inactive-selectable-selection-2.25.1
Open

fix(ui5-list): restore keyboard and body selection for InactiveSelectable items#14045
dobrinyonkov wants to merge 1 commit into
release-2.25.1from
downport/list-inactive-selectable-selection-2.25.1

Conversation

@dobrinyonkov

Copy link
Copy Markdown
Contributor

Downport of #14037 to 2.25.1.

Problem

InactiveSelectable items could not be selected via Space, Enter, or item-body clickfireItemPress early-returned for the type, and the checkbox/radio are tabindex="-1" (keyboard-unreachable). Only a direct mouse click on the checkbox/radio worked.

Fix

  • ListItem.tsfireItemPress no longer early-returns for InactiveSelectable.
  • List.tsonItemPress suppresses only the public item-click event for InactiveSelectable, while still selecting.
  • JSDoc corrected (@since 2.25.1 preserved).

Tests

List.cy.tsx updated to the corrected contract — 147/147 passing. Manual page added at test/pages/ListInactiveSelectable.html.

Clean cherry-pick of b02452d3abe onto release-2.25.1 (no conflicts; @since 2.25.1 unchanged).

…able items

Downport of #14037 to 2.25.1.

InactiveSelectable items could not be selected via Space/Enter or item-body
click because fireItemPress early-returned for the type, and the checkbox/radio
are tabindex="-1" (keyboard-unreachable). Restore the press path and suppress
only the public item-click event for InactiveSelectable in List.onItemPress.
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.

1 participant