Answer the question
In order to leave comments, you need to log in
Drag&Drop in Vue.js, why does the elementFromPoint method work incorrectly?
Hey! Reinventing the wheel with Drag & Drop (for experience and all that, I know about ready-made libraries).
I am doing this example .
I made some changes to the code, but when copying them into a regular html file, everything works out as it should. However, when running this code in Vue, the code on line 40 does not work correctly - despite explicitly setting the dragged element's hidden = true property, the draggable element is still returned in elemBelow . I spent already half a day digging into this issue, but the successful launch in a separate html file completely confused me. I have no idea what exactly in vue can be a hindrance.
In the near future I will try to issue a codepen with a reproduction of the problem.
Upd:
Here is a good example.The value of the variable elemBelow is displayed in the console
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question