Questions tagged [vue-events]

85 questions
1
vote
2 answers

Vue.js3 event @keydown.esc on text input is not triggered

I have a text field with various events. All events are working, but not @keydown.esc. I would like to differ between @blur and @keydown.esc. Escape should always do something and @blur only sometimes. Found this code…
Daniel
  • 31
  • 4
1
vote
1 answer

Vue preventing default router-link behaviour works in Chrome but not in Firefox

I have a component that has a router-link as a root tag. I want to prevent its default link behavior so it would fall back to the link if something is wrong with JS or it's disabled. I made it work in Chrome with such event…
Dvdgld
  • 1,984
  • 2
  • 15
  • 41
1
vote
4 answers

VUE JS : Onclick did not increment the score as expected

Hey there i'm working on a simple game where if user click the button then the score will be plus i.e. 1. new Vue({ el: '#MyApp', data: { score: '10', }, methods: { ScoreIncre: function(incre) { this.score += incre; } …
Muhammad Khan
  • 85
  • 2
  • 17
1
vote
1 answer

Data transfer problem between two siblings components (Vue js)

I have three components and one of those is the parent of the others I'm trying to pass an object called talk between siblings emiting it inside an event from FollowedBrowser to LeftBar and then passing it via prop from LeftBar to TalksList…
fahico98
  • 135
  • 2
  • 11
1
vote
1 answer

Handle submit event in child then parent in Vue using Composition API

New to Vue.js and trying to handle a submit event in a component representing a form that will check validity of child components and pass on processing to an event handler in the parent if everything looks good. I'm getting this error... [Vue…
1
vote
0 answers

vue.js1 event not emitting if 4 listerns are registered

I have a very weird issue. I might be doing something very silly here but not aware of it. I am using vue.js 1. I have a component which is a bootstrap modal that emits 4 custom events. For each of these, I have a listener registered on the parent.…
Yeasir Arafat Majumder
  • 1,222
  • 2
  • 15
  • 34
1
vote
1 answer

Is there a way on VUE to display child name under parents name using :click event?

My View where filterItems is used for search function. {{ item.arrival }} gets time as 12:00 PM , 1:00 PM and 1:30 PM {{ post.customerName }} gets name as David , Marco and Mario. This is my view code
1
vote
1 answer

Clicking on input with keyup.enter.prevent form is submitted anyway

In @vue/cli 4.1.1 app I use bootstrap-vue and I have a form with 2 tabs : on 1st tab several fields and clicking Enter key on any control my form is submitted as expected, but I have the second tab with listing of meta keywords and single input…
Petro Gromovo
  • 1,755
  • 5
  • 33
  • 91
1
vote
1 answer

Reusing method from parent component inside child component

The structure of my app is like this: Root component(mounted inside main.js(generated with vue-cli)):