fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

DetailsList - in SelectionMode.none - able to select row using mouse, unable to using keyboard

Open eveleens opened this issue 7 years ago • 8 comments

Codepen demonstrating the issue

Turn off modal selection in: https://developer.microsoft.com/en-us/fabric#/components/detailslist

Actual behavior:

You can use your mouse to make a row selection. You can NOT push space or enter to make a row selection.

Expected behavior:

Unclear, but it should be consistent.

I have a case where I'd like to be able to select without showing the checkmarks, so what currently exists works for me for mouse users. However, it doesn't work for keyboard users.

Though, I presume the fact that mouse users can make a selection is a bug when we explicitly set the selectionMode to none.

Documentation describing expected behavior

eveleens avatar Mar 29 '19 20:03 eveleens

I can confirm this behavior is occurring.

NinthDesertDude avatar Mar 29 '19 20:03 NinthDesertDude

@betrue-final-final, is it a bug that DetailsList allows for item selection via "Click" while modal selection is set to "none"? The behavior is exhibited at https://developer.microsoft.com/en-us/fabric#/components/detailslist.

KevinTCoughlin avatar Mar 29 '19 20:03 KevinTCoughlin

A keyboard user MUST be able to use space to select an item. This is definitely a bug.

betrue-final-final avatar Mar 29 '19 21:03 betrue-final-final

After chatting with @betrue-final-final, it seems like we at least want parity with keyboard & mouse in the SelectionMode === None case.

Currently in that case, users can only "click" and select a single item. Keyboard users cannot. We'll need to chat with @ThomasMichon to see do we either:

  1. Disable single selection entirely in this mode

OR

  1. Keep "click" behavior and allow for SPACE to perform the same interaction.

The naming makes me think we want to remove the behavior, but we'd need to see what the OneDrive / SharePoint implications are.

KevinTCoughlin avatar Mar 29 '19 22:03 KevinTCoughlin

When SelectonMode === None, selection should not work, period.

dzearing avatar Apr 01 '19 17:04 dzearing

When SelectonMode === None, selection should not work, period.

I have a fix for this, just need to add tests and communicate the change.

KevinTCoughlin avatar Apr 02 '19 21:04 KevinTCoughlin

@eveleens, I've provided a potential solution and alternative in https://github.com/OfficeDev/office-ui-fabric-react/pull/8605. Thanks for raising awareness to this issue.

The scope of the proposed fix impacts SelectionZone across OUFR cc: @betrue-final-final @dzearing

KevinTCoughlin avatar Apr 04 '19 03:04 KevinTCoughlin

:tada:This issue was addressed in #8605, which has now been successfully released as [email protected].:tada:

Handy links:

msft-github-bot avatar Apr 05 '19 12:04 msft-github-bot