fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Bug]: ref does not exist on DataGrid components when generics are used

Open ling1726 opened this issue 4 months ago • 1 comments

Component

DataGrid

Package version

latest

React version

18

Environment

System:
    OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (32) x64 Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
    Memory: 57.76 GB / 62.77 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash

Current Behavior

Adding a ref to a DataGrid component that uses generics results in an error

Expected Behavior

Refs should be usable on DataGrid components with generics

Reproduction

https://stackblitz.com/edit/idut6z?file=src%2Fexample.tsx

Steps to reproduce

Open repo and find the TS error

Are you reporting an Accessibility issue?

None

Suggested severity

Medium - Has workaround

Products/sites affected

No response

Are you willing to submit a PR to fix?

yes

Validations

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

ling1726 avatar Oct 04 '24 13:10 ling1726