Skip to content

Fix incorrect documentation.#19

Open
yukukotani wants to merge 1 commit intobranu-ws:masterfrom
yuku-contrib:master
Open

Fix incorrect documentation.#19
yukukotani wants to merge 1 commit intobranu-ws:masterfrom
yuku-contrib:master

Conversation

@yukukotani
Copy link
Copy Markdown

Current example of id as an argument to v-drag is not working. So I added new one.

@nattyluke
Copy link
Copy Markdown

For me it still didnt work for me because there is noch event.path.
Had to update following function like this:
function checkIfIdInPath(id, path) { while( path.id !== id && path.parentNode) path = path.parentNode return path.id === id }
Also slightly changed first line in mousedown function:
if (_data.draggableElementId && !checkIfIdInPath(_data.draggableElementId, e.target)) { return }
I can upload a branch with the changes if you like (and give me permissions, or what is the correct way, forking?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants