question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document .native modifier on "Event Handling" page

See original GitHub issue

The “Event Handling” page has a handy list of modifiers, which excludes .native as a valid modifier. You don’t learn about the .native modifier until you get all the way down to “Custom Events” (which is a somewhat misleading place to have to go to learn about it).

The .native modifier should be documented on the “Event Handling” page alongside it’s brothers/sisters.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

8reactions
sdrascommented, Apr 17, 2019

We also might want to hold off on much more work on this as the .native modifier might be removed soon (see RFC detail)

1reaction
NataliaTepluhinacommented, Apr 17, 2019

Thank you for your input!

First of all, we definitely should notify people about unwanted use of .native so I’ve submitted a PR to add a console warning when .native is used incorrectly: https://github.com/vuejs/vue/pull/9884

I will think about adding a warning about not using .native incorrectly to docs as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Event Handling - Vue.js
A method handler automatically receives the native DOM Event object that triggers it ... To address this problem, Vue provides event modifiers for...
Read more >
Event handling in native C++ | Microsoft Learn
In native C++ event handling, you set up an event source and event receiver using the event_source and event_receiver attributes, ...
Read more >
Handling Events with Vue.js
Types of events you can handle; Event handling methods; Event object; Event modifiers; Custom events; Event bus. When you build a dynamic ...
Read more >
Methods and Event Handling - API Manual
Methods and Event Handling · Method Handler · Inline Statement Handler · Event Modifiers · Key Modifiers · Why Listeners in HTML?
Read more >
Deep dive into Vue event handling - LogRocket Blog
.prevent modifier in Vue, which calls the native ; event.preventDefault() method. This series of steps prevents the event from reloading the page ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found