vuejs / docs

📄 Documentation for Vue 3
https://vuejs.org
Other
2.81k stars 4.1k forks source link

doc:fix method handler access the DOM element way #2824

Closed coderZoe closed 3 weeks ago

coderZoe commented 3 weeks ago

Description of Problem

The documentation mentions that method handler can access the DOM element through event.target.tagName. However, I think that event.target.tagName actually retrieves the tag name of the DOM element, not the DOM element itself. To access the DOM element directly, one should use event.target.

Proposed Solution

I suggest updating the documentation to replace event.target.tagName with event.target.

Additional Information

netlify[bot] commented 3 weeks ago

Deploy Preview for vuejs ready!

Name Link
Latest commit 2dd14596dbf3db17ae9e60f3cf4e4e9ae80be064
Latest deploy log https://app.netlify.com/sites/vuejs/deploys/662a2503094fd40009692f25
Deploy Preview https://deploy-preview-2824--vuejs.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.