diff --git a/change/@fluentui-react-table-dc36dcfe-b403-4c89-9868-b16b05e46700.json b/change/@fluentui-react-table-dc36dcfe-b403-4c89-9868-b16b05e46700.json new file mode 100644 index 00000000000000..0055a60452dc48 --- /dev/null +++ b/change/@fluentui-react-table-dc36dcfe-b403-4c89-9868-b16b05e46700.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "fix(TableSelectionCell): Radios should not change selection on focus", + "packageName": "@fluentui/react-table", + "email": "lingfangao@hotmail.com", + "dependentChangeType": "patch" +} diff --git a/packages/react-components/react-table/src/components/TableSelectionCell/TableSelectionCell.test.tsx b/packages/react-components/react-table/src/components/TableSelectionCell/TableSelectionCell.test.tsx index 47ed0cada6ce95..37bde18504ae1b 100644 --- a/packages/react-components/react-table/src/components/TableSelectionCell/TableSelectionCell.test.tsx +++ b/packages/react-components/react-table/src/components/TableSelectionCell/TableSelectionCell.test.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; import { render } from '@testing-library/react'; +import { resetIdsForTests } from '@fluentui/react-utilities'; import { TableSelectionCell } from './TableSelectionCell'; import { isConformant } from '../../testing/isConformant'; import { TableSelectionCellProps } from './TableSelectionCell.types'; @@ -10,6 +11,7 @@ const tr = document.createElement('tr'); describe('TableSelectionCell', () => { beforeEach(() => { document.body.appendChild(tr); + resetIdsForTests(); }); isConformant({ diff --git a/packages/react-components/react-table/src/components/TableSelectionCell/__snapshots__/TableSelectionCell.test.tsx.snap b/packages/react-components/react-table/src/components/TableSelectionCell/__snapshots__/TableSelectionCell.test.tsx.snap index e96b26dd14d43a..0c12a88346c637 100644 --- a/packages/react-components/react-table/src/components/TableSelectionCell/__snapshots__/TableSelectionCell.test.tsx.snap +++ b/packages/react-components/react-table/src/components/TableSelectionCell/__snapshots__/TableSelectionCell.test.tsx.snap @@ -10,7 +10,7 @@ exports[`TableSelectionCell renders a default state 1`] = ` >