Filepond: Bug in drag and drop inside a $mdDialog from AngularJS

Created on 20 Jun 2018  路  5Comments  路  Source: pqina/filepond

Hello!

I've been using this awesome lib for a few time now, and I found a bug when the FilePond elements are inside a component (from AngularJS, I think that this happens because of a shadow root created for this dialog).

Turns out that the element returned by the function getRootNode (here) doesn't have an implementation of elementFromPoint used here and the drag and drop functionality simply no longer work :(

I've tried a few things and changing the getRootNode function to always return the document element resolved my problem, but I don't know if this is going to be the actual fix for every case.

All 5 comments

My console log:

TypeError: root.elementFromPoint is not a function

It'll look for the first shadow root, it does that because I'm working on a Web Component as well. Will look into this.

Just published version 1.8.1, should be fixed, haven't been able to test it though. Can you confirm if it is fixed?

Just upgraded to 1.8.1 and everything seems to work perfectly.
Thanks!!!

Fantastic, thanks for confirming @johnnyasantoss

Was this page helpful?
0 / 5 - 0 ratings

Related issues

paul-siteway picture paul-siteway  路  4Comments

Chak10 picture Chak10  路  3Comments

dreamon11 picture dreamon11  路  5Comments

madrussa picture madrussa  路  6Comments

irfancnk picture irfancnk  路  7Comments