Vuesax: vs-switch calls double function when @change

Created on 26 Mar 2019  路  3Comments  路  Source: lusaxweb/vuesax

The problem with the latest vuesax release ^3.8.39.
When I use vs-switch, I need to call function. I use @change="someFunction".
During switching this function calls and executes 2 times.
Occurs in Chrome 73.0.3683.86
Package manager Yarn.


methods:{
StatusSwitch (objectId) {
console.log("Check");
}
}

Will show in console
Check
Check

Most helpful comment

I haven't seen code. So, i dont know why thats working but you can use @input for changes. This will be triggered only once.
Cheers ~

All 3 comments

Same problem here
Screen Shot 2019-03-26 at 11 39 43 AM

I haven't seen code. So, i dont know why thats working but you can use @input for changes. This will be triggered only once.
Cheers ~

I haven't seen code. So, i dont know why thats working but you can use @input for changes. This will be triggered only once.
Cheers ~

Thank you! Seems works fine.

Was this page helpful?
0 / 5 - 0 ratings