Skip to content

Get [node] from [dblclick] event #445

Answered by Rakasch
TeoDar asked this question in PrimeVue
Nov 12, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

If you add a plain javascript event handler, you will not get any vue related data.

You could either workaround it using the selectedNode:
https://stackblitz.com/edit/ucv6bt-9yub2h?file=src%2FApp.vue

Or you could go the plain js way and add a data-key="xy" to all your nodes, then get it in the doubleclick by event.target.dataset.key;

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@TeoDar
Comment options

Comment options

You must be logged in to vote
1 reply
@TeoDar
Comment options

Answer selected by TeoDar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants