Questions tagged [vue-events]
85 questions
0
votes
1 answer
vue.js: How to change dynamically the value of a input field with the content from an other and still use value?
I have a firstName and a lastName input field and want to concat both at the name input field, e.g.

ikreb
- 2,133
- 1
- 16
- 35
0
votes
0 answers
Catch Event from Dropdown component not working in Parent
I am using this wonderful https://www.creative-tim.com/product/vue-black-dashboard-pro and their component Base-Dropdown has the following code:

abisson
- 4,365
- 9
- 46
- 68
0
votes
1 answer
Vue - Vue3 composition API props receiving problem
I can't get to work in Vue3 this:
Counter1 emits value to main App page,
App page feeds props of Counter2 component (so Counter2 should basically display data emitted by…

Dalibor
- 1,430
- 18
- 42
0
votes
1 answer
Vuejs - how to remove event onPressKey on a simple input type text
I have a simple input type text and I want to remove the onKeyPress for performance.
I tested many solution like this by it doesn't work. I see again event press on performance tab in chrome navigator
mounted() {
const doc =…

Seb
- 404
- 2
- 4
- 14
0
votes
0 answers
How to draw paths for the islands in world map using d3.js
I am facing an issue while doing d3.js maps, the issue is every country I am able to fill the color but coming to islands I am unable to see the islands places
attr("stroke", function(d){
…

Ratnam
- 1
- 1
0
votes
3 answers
VueJS: How to to access parent function in child to conditionally render css classes?
I have a parent component with a function like (simplified example)
isValid(value) { return value > validationModifier }
Both the parent and the child use that function to conditionally render e.g. CSS classes. So in my child I would like to…

Klausette
- 362
- 1
- 3
- 14
0
votes
1 answer
Share data between non related components
I'm trying to set up a vue event bus to send events between my components, I have this within my app.js file Vue.prototype.$eventBus = new Vue(); then in one component I have this
this.$eventBus.$emit('pnc-person', remarkString);
and in a different…

hcphoon
- 538
- 5
- 24
0
votes
1 answer
How to pass events from a non-Vue member object
I have a component (Foo), one of whose data props is an instance of a class that's handling a lot of non-UI stuff (Bar). There will be some events within Bar that need to trigger behaviour in Foo. I'd like to wire them up in a way that respects the…

Igid
- 515
- 4
- 15
0
votes
1 answer
Vue on event selects first value only
I am using vue-draggable to drag my items. I am trying to print out the moved id using :move="onDrop" event and it prints out using console.log(this.teamByTime2[0].id); first value only. Lets take an example from my DATA, there is person called KIM…

Yahoo
- 558
- 11
- 34
0
votes
1 answer
Vue table row-contextmenu event not firing?
I would like to open a custom context menu whenever the user clicks on a table cell in my vue page. So I'm trying to use the row-contextmenu event as defined here, but it doesn't fire.
Table in the template:

Dave
- 43
- 1
- 1
- 7
0
votes
1 answer
VueJS click events in compoments
I've made a component (is that overkill?) to call recursively in order to render a tree, but it seems to be impossible to handle click events because stuff rendered inside the component can't see the method I want in the Vue's methods; this appears…

Richard Barraclough
- 2,625
- 3
- 36
- 54
0
votes
1 answer
Call vue component property setter via event from another component
I have a vue application with an App.vue like the following:
…

nymvno
- 370
- 5
- 19
0
votes
0 answers
Making an onClick="" attribute in vue while referring to the component
I need to attach an onClick="" event to a Vue component. I am aware that I can use @click="", but since this div is later going to be cloned (I am using a slider library that clones the divs). I cannot use @click="", since the original event handler…

FooBar
- 5,752
- 10
- 44
- 93
0
votes
1 answer
TypeError: Cannot read property '_wrapper' of undefined
I am trying to update the props data sent to a component on a button click to a single component in vue.
Button click triggers an action loads the data from a config. But this throws the error and the error message was not clear. Find the error…

Sarath Damaraju
- 309
- 2
- 13
0
votes
2 answers
Vuejs, Get content of a $event.emit
I'm trying to get the content of a $event.emit, as below. In the first console.log, inside the function comes the content. Leaving the function, not the console.log of the variable.
mounted () {
this.$events.on('emitEvent', function (eventData) {
…

usr123123
- 21
- 5