-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access corresponding DOM element onClick() in v-repeat item #1181
Comments
Please post questions to vuejs/Discussion.
|
Merci beaucoup! And thanks for the tip with vuejs/Discussions! |
I am having an weird problem with event.target. But if I write the a tag with font-awesome like this, And again if I write like |
Hello @potasiyam This is a usage question, and we encourage you to ask it on forum or gitter. We try to use the issue tracker for bug reports and feature requests. As for the question, use event.currentTarget when you need the node that has the listener is on. |
I hope solve someone problem. we can use the vue.$ref:
and in your onClick function you can access it like this:
|
I got a list of
users
which are displayed withv-repeat
.HTML:
JavaScript:
How can I access the corresponding
DOM
element to the clickeduser
? I want to perform some jQuery actions...Thanks a lot! :-)
The text was updated successfully, but these errors were encountered: