Skip to content

unable to reset the ChoiceGroup selection using selectedKey after 8+ #20109

Description

@cvabanuk3

Environment Information

  • Package version(s): @fluentui/react 8.0.0.beta.0 (and on....)
  • Browser and OS versions: Any

reproduction of the bug :

https://codesandbox.io/s/fluent-modal-on-dialog-forked-p6wso?file=/src/ChoicegroupTest.tsx
same code works fine with 7...... where it fails on 8+

Actual behavior:

updating selectedKey using a useState not setting the radio selection (8.0.0.beta.0 onwards)

Expected behavior:

updating selectedKey using a useState should set the radio selection, worked till 7 (7.177.2)

Priorities and help requested:

Are you willing to submit a PR to fix? Yes

Requested priority: Normal

Products/sites affected: (if applicable)
https:support.xbox.com

Metadata

Metadata

Assignees

No one assigned

    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