Skip to content

[Feature] When pasting i'd like it to only paste when hovering the dropzone #1047

@bretto36

Description

@bretto36

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

I've been using this package through Filament and have come to a point in my project where i have 2 filepond instances on the page.. The problem is, when pasting BOTH instances get the file and process it.

I was wondering if there was a way to ensure only the instance that is being hovered would be able to handle the paste.

I've been trying for a couple of hours to do it myself but i just don't know enough about the structure of Filepond

Describe the solution you'd like

I'd love a pasteOnHover: true parameter to be able to be passed.

Describe alternatives you've considered

I tried destroying the component when not on screen but that cause too many issues.

I've tried changing the createPaster.js but can't seem to get it to work. Wondering if anyone else has some ideas i could try and implemnt in a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions