Skip to content
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

[Bug] TypeScript ref prop type is missing #236

Open
2 tasks done
nextglabs opened this issue Jun 11, 2023 · 0 comments
Open
2 tasks done

[Bug] TypeScript ref prop type is missing #236

nextglabs opened this issue Jun 11, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@nextglabs
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Have you updated React FilePond, FilePond, and all plugins?

  • I have updated FilePond and its plugins

Describe the bug

When using react-filepond in TypeScript, the following TS error is thrown:

Property 'ref' does not exist on type 'IntrinsicAttributes & Omit<FilePondProps, "p" | "clipPath" | "filter" | "_hover" | "_active" | "_focus" | "_highlighted" | "_focusWithin" | ... 411 more ... | "as"> & { ...; } & Omit<...> & { ...; }'.

Reproduction

Create a FilePond component and pass a ref prop, as described in the documentation. A TypeScript error is thrown due to the missing ref in type declarations.

Environment

- React version: React 18
- TypeScript version: 4.9.3
@nextglabs nextglabs added the bug Something isn't working label Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant