draggable icon indicating copy to clipboard operation
draggable copied to clipboard

Bug: in Event drag:over:container is event.data.mirror undefined

Open thomasaull opened this issue 7 years ago • 6 comments

2. Describe the bug

I'm doing something with the mirror element in the drag:over:container event:

draggable.on('drag:over:container', event => {
  console.log(event.data.mirror)
})

While it does work with v1.0.0-beta.7 it stopped working with v1.0.0-beta.8 where event.data.mirror is just undefined

Please reach out if I can help with anything (additional information, test repo, …)

4. Please tell us about your environment:

  • Library version: v1.0.0-beta.8
  • Browsers: Chrome 69

thomasaull avatar Sep 11 '18 13:09 thomasaull

It looks like they refactored MirrorEvent in v1.0.0-beta.8.

kisunji avatar Oct 08 '18 03:10 kisunji

Hi I have same problem? Do you find solution?

zbagadiya avatar Jan 02 '19 08:01 zbagadiya

The solution for me for now is to keep using v.1.0.0-beta7 @zbagadiya

thomasaull avatar Jan 14 '19 11:01 thomasaull

Thanks @thomasaull. I also had this issue within v1.0.0-beta.8 & downgrading to v1.0.0-beta.7 fixes the problem.

Illizian avatar Oct 28 '19 10:10 Illizian

@Illizian Sure thing! Did you try using the latest v1.0.0-beta.9, maybe this bug is fixed there?

thomasaull avatar Oct 28 '19 10:10 thomasaull

@thomasaull I had just spotted that branch whilst investigating the differences between beta 8 & 9, as seen here:

https://github.com/Shopify/draggable/compare/v1.0.0-beta.7...v1.0.0-beta.8

There's some significant changes to how the mirror is being handled in there. I have found mirror to be defined in the mirror:created event.

Update: Yes, mirror is still undefined in v1.0.0-beta.9

Illizian avatar Oct 28 '19 10:10 Illizian