-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Cherry Pick: DetailsList isSelectedOnFocus #23548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cherry Pick: DetailsList isSelectedOnFocus #23548
Conversation
NOTE: Cherry-pick from master branch. Adds a new optional prop, `isSelectedOnFocus` to DetailsList to control whether items in the list are selected on focus. By default the value for this prop is `true` and the existing behavior of DetailsList is preserved. When setting this value to `false` the behavior in `onHeaderKeyDown` is changed so that using the down arrow key to move from the header row to the list proper will _not_ select the first item in the list. When `isSelectedOnFocus` is set to `true` the first item in the list will _always_ be selected (this is the behavior prior to this change). Additionally, this prop is passed down to DetailsList's internal SelectionZone as this prop also exists on that component. Previously users could only pass this prop via the `selectionZoneProps` prop on DetailsList. The default behavior for SelectionZone is also maintained as the default value for its `isSelectedOnFocus` prop is also `true`.
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 39af26b:
|
Asset size changes
Baseline commit: 442e3fe9e02b8b858b8bd7ffa7a7fb27ac1a2222 (build) |
Perf AnalysisNo significant results to display. All results
|
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
change/@fluentui-react-1c69b2a4-8b4f-43fd-bfb9-02d2307b9b4b.json
Outdated
Show resolved
Hide resolved
Co-authored-by: Esteban Munoz Facusse <esteban.230@hotmail.com>
Cherry picks a change to DetailsList from
masterthat addsisSelectedOnFocus.Original pull request: #23467