ember-drag-drop icon indicating copy to clipboard operation
ember-drag-drop copied to clipboard

Error when using test helper in sortable-objects with handle

Open Fl0rianFischer opened this issue 7 years ago • 5 comments

First of all: great plugin, thanks! I'm using Ember 2.0 and ember-drag-drop 0.4.5

I get an error TypeError: Cannot read property 'target' of null when using the drag test helper. It originates in the drag coordinator service but I tracked it down to the dragReady flag not being set in the didInsertElement hook of draggable-object in the tests when using a drag handle.

Fl0rianFischer avatar Jul 20 '17 13:07 Fl0rianFischer

Yes I noticed this the other day as well, meant to make an issue to fix it. You can use version 0.4.3 and it won't have this bug. I need to fix this soon. It was introduced with some fixes for mobile.

dgavey avatar Jul 20 '17 13:07 dgavey

Thanks so much for you quick answer. You saved my day.

Fl0rianFischer avatar Jul 20 '17 13:07 Fl0rianFischer

In version 0.4.3 I'm getting this problem

https://github.com/mharris717/ember-drag-drop/issues/98

Fl0rianFischer avatar Jul 20 '17 14:07 Fl0rianFischer

Hmm, odd I'm sure it was the same issue.

dgavey avatar Jul 20 '17 14:07 dgavey

I'm pretty sure you're right. But when using 0.4.3 the drag test helper seems to be unusable due to another helper not being exposed.

Fl0rianFischer avatar Jul 20 '17 14:07 Fl0rianFischer