Skip to content

[Bug]: DataGrid single and multiple select controlled not work #27896

Description

@slobber

Library

React Components / v9 (@fluentui/react-components)

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900H
    Memory: 40.11 GB / 63.68 GB
  Browsers:
    Edge: Spartan (44.22621.1702.0), Chromium (113.0.1774.42)
    Internet Explorer: 11.0.22621.1

Are you reporting Accessibility issue?

None

Reproduction

https://react.fluentui.dev/?path=/docs/components-datagrid--default#single-select-controlled

Bug Description

The samples in official doc site (https://react.fluentui.dev/?path=/docs/components-datagrid--default#single-select-controlled, https://react.fluentui.dev/?path=/docs/components-datagrid--default#multiple-select-controlled) have the bug.

Actual Behavior

Click one row, the selection not change, and not fire selectionChange event.

Expected Behavior

Click one row, selectionChange event is not fired, and onSelectionChange handler is not called.

Logs

No response

Requested priority

Blocking

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions