craft.js
craft.js copied to clipboard
Is there a way to detect when a child component is incoming into a parent container?
Hi, to improve the UX of the drag & drop, I want to change my container's color when I drag an incoming component into it.
Is there a way to detect when a child component is incoming into a parent container?
Thanks for your answers
Currently not, but there is my Draft PR #37 that aims to add that functionality. I just need to find some time to finish it.
@raphkhan I was wondering the same the other day, then I noticed that the DOM changed on dragOver. I think that for the time being you can change the styles using the CSS class "draggedOver"
Same issue here: https://github.com/prevwong/craft.js/issues/124