Help With Troubles Accessing event
Object Properties on Event Handler
#9235
Unanswered
bikathi
asked this question in
Help/Questions
Replies: 2 comments 4 replies
-
Hola! If you still need help, maybe you can past your case on stackblitz? I try repeat your case and in my tiny app I get $event.target without problem, but maybe you have dropped something in from and best way is check your code in stackblitz or you can try create empty vue app and repeat you task case with form in it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
you can see this demo. The event object just have 2 own properties. So the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I have a form that I am writing up as a Vue component. I want the form to be submitted as FormData because there is a section in the form that has file uploads.
This is a section of the top part of the code:
And this is the event handler that handles the form submission event:
Problem
For some reason, the
event.target
does not exist and for sure when I print the...JSON.stringify(event, null, 2)
i see the event object is just this:It's as if Vue is cutting off all the other parts of the event object. Why is this happening? And how can I fix it so that I have full access to the event object in my event handler. PS: I also tried the
$event
syntax and it still gives the same issueBeta Was this translation helpful? Give feedback.
All reactions