Open petrkotek opened 7 months ago
Looking at the tests (https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/use-v-on-exact.js), this may be the correct behaviour. I'll look into this a bit more and potentially reopen this.
Turns out that:
<input
@keydown.ctrl.enter.exact="save()"
@keydown.stop.exact
/>
passes the lint & works fine, however, feels like @keydown.stop
shouldn't need the .exact
(since I want to stop propagation of all keys, .exact
seems confusing).
If somebody has some thoughts around this / best practices recommendations, I'd appreciate it!
(But certainly don't want to waste anyones time)
That does sound like a bug. PR welcome to fix this!
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
What did you expect to happen? I expected that
@keydown.stop
is OK to use and doesn't need.exact
modifier.What actually happened?
vue/use-v-on-exact
returned an error that .exact should be used - on the@keydown.stop
line.Repository to reproduce this issue https://github.com/petrkotek/bugreports (See https://github.com/petrkotek/bugreports/blob/main/vue-project/src/components/HelloWorld.vue)