Closed BloodWorkXGaming closed 4 years ago
Hi @BloodWorkXGaming, thank you for the comment. You had better solve the https://github.com/anseki/plain-draggable/issues/43 before this issue because that might be related to your environment.
Here is a minimal example when it happens:
https://jsfiddle.net/m0ykgu5L/6/
As soon it is in a
https://vuetifyjs.com/en/components/steppers
mounted
is called before the view is rendered.
Try this for calling after that was rendered:
mounted() {
this.$nextTick(() => {
let draggable2 = new PlainDraggable(document.getElementById("kreis"))
});
}
Weirdly that works in the fiddle however not in my codebase as it is on a different page which isn't the first one opened.
Like seen here: https://jsfiddle.net/m0ykgu5L/8/
Sorry, my English is poor. Do you mean that that works in the fiddle?
It works in the fiddle you posted yesterday, however in my new one it doesn't
Works here: https://jsfiddle.net/m0ykgu5L/6/
Doesn't work here: https://jsfiddle.net/m0ykgu5L/8/
You should read my comment again. Anyhow, you have to specify an element that was rendered. For example:
mounted() {
// It is better that calling after that was rendered.
const target = document.getElementById('kreis');
target.parentNode.parentNode.parentNode.style.display = '';
new PlainDraggable(target);
}
No reply came, then this abandoned issue is closed.
Hello, got a wierd problem when trying to apply a draggable to a svg element. My Stack is: VueJS, vuetify, typescript, plain-draggable
This error only occurs in FireFox, but when trying to drag on chrome, the element just disappears.
When trying a simple example with the svg element not being inside a vuetify element it works without problems.
Thanks for the help.