-
Beta Was this translation helpful? Give feedback.
Answered by
artf
Aug 7, 2023
Replies: 1 comment 8 replies
-
Hi https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah @protozoo I got it... what I'm trying to explain to you is in order to make use of the default canvas D&D mechanism you have to drop a component, there is no easy way around it right now.
To handle the "hide the green mark" problem, you can simply toggle a CSS (eg. targeting
.gjs-placeholder
) when you start/end the drag of your custom elements.For the component itself, once it's dropped/created you can simply select the parent, open your dialog and then remove the dropped component.