Bug: in Event drag:over:container is event.data.mirror undefined
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
It looks like they refactored MirrorEvent in v1.0.0-beta.8.
Hi I have same problem? Do you find solution?
The solution for me for now is to keep using v.1.0.0-beta7 @zbagadiya
Thanks @thomasaull. I also had this issue within v1.0.0-beta.8 & downgrading to v1.0.0-beta.7 fixes the problem.
@Illizian Sure thing! Did you try using the latest v1.0.0-beta.9, maybe this bug is fixed there?
@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