Skip to content

DataTransfer.items #54

Closed
Closed
@pete-murphy

Description

@pete-murphy

Prerequisites

  • Before opening an issue, please check the HTML standard (https://html.spec.whatwg.org). If it doesn't appear in this spec, it may be present in the spec for one of the other purescript-web projects. Although MDN is a great resource, it is not a suitable reference for this project.

Description

I recently had a use case for the DataTransfer.items method to detect MIME types of dragged files on an onDragEnter event listener (DataTransfer.files returns an empty array when dragging). Would this be something that would be a welcome addition?

HTML Standard Reference

https://html.spec.whatwg.org/#dom-datatransfer-items

First pass at an implementation (currently with no documentation)

https://github.com/ptrfrncsmrph/jira-dependencies-frontend/tree/main/src/Web/HTML/Event/DataTransfer

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions