marcojakob / dart-dnd

Drag and Drop for Dart web apps with mouse and touch support.
https://code.makery.ch/library/dart-drag-and-drop/
MIT License
135 stars 86 forks source link

Cannot initialize Dropzone with List<HtmlElement> #30

Closed frickt closed 5 years ago

frickt commented 5 years ago

Could we change the check in the constructor for Dropzone from:

    if (_elementOrElementList is ElementList) {

to

   if (_elementOrElementList is List<Element>) {

I would like to use the library together with angular dart's ViewChildren where i get a List.

Or is there a reason for ElementList?

marcojakob commented 5 years ago

You are right. That could be allowed. Just released a new version 1.4.1

marcojakob commented 5 years ago

@frickt Can you confirm that it works now?

frickt commented 5 years ago

wow, that was fast. works perfect. thank you very much!