Coder Social home page Coder Social logo

Comments (7)

jguyenot avatar jguyenot commented on August 30, 2024 1

Hi, after some study, the problem is with the console.
If i log dataTransfer.files[0] is full.

from ngx-drag-drop.

reppners avatar reppners commented on August 30, 2024

Hi, thanks for reporting :)

I can confirm its not working. Will look into it the next couple of days.

from ngx-drag-drop.

jguyenot avatar jguyenot commented on August 30, 2024

Hello,

i confirm too that in firefox the external source open the file directly onto the page.

In Chrome and Internet Explorer the event.dataTransfert is not populated with the file.
image

from ngx-drag-drop.

bkarv avatar bkarv commented on August 30, 2024

Just saw this I have the same issue with Chrome see below
Issue 48

@jguyenot Did you find a solution?

from ngx-drag-drop.

reppners avatar reppners commented on August 30, 2024

Did some research and it might be related to my mistake of not implementing firefox requirements for drag and drop correctly in my demo.

Firefox needs a dragstart handler which sets some data on the dataTransfer instance of the event. See https://salesforce.stackexchange.com/a/214639

EDIT: aah well.. no it should work in my demo since its only items that are draggable by default.. research goes on.

from ngx-drag-drop.

reppners avatar reppners commented on August 30, 2024

Resolved it and released fix with rc.4. You can install with npm install ngx-drag-drop@next. It's still on a branch pending confirmation before I'll merge in master.

Failure reason was that Firefox seems to emit dragover with dataTransfer being null which the logic wasn't capable of handling. Now it is and falls back to default values.

from ngx-drag-drop.

JorisBrunel avatar JorisBrunel commented on August 30, 2024

Hi,
I can confirm that it is now working on Firefox !

Thanks !

from ngx-drag-drop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.