Skip to content

[Bug] TypeScript ref prop type is missingΒ #236

@nextglabs

Description

@nextglabs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions