-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function parameters #3
Comments
Just installed this component this morning and this is exactly why it's not working for us too! |
Thanks for feedback. Will look into in start of next week. PRs also welcome. |
@clnt , @clwilliams just published v1.2.0 - should work right now and fix #2 and #4 (added) ^ statement not totally correct. I see difference between interpolations: on:{"click":function($event){_vm.asyncActionWithArgs($event, 'abc')} But my example transpiled like: on:{"click":function($event){return asyncActionWithArgs($event, 'abc')} I believe problem could be the same as for event modifiers and only PR to Vue can resolve this transpilation question. I'll try to find another way to handle this situations (probably will change syntax slightly). Also this can be good point to rethink logic and rewrite plugin to support specific components like b-btn. |
Could this issue be related to vuejs/vue#7628? |
@timberkeley you're right. |
@clnt , @clwilliams , @timberkeley - Just released v2.0.0 with extended mode. Everything should work fine. |
Finally i can give you proper answer for main question: <button v-promise-btn v-on="{ click: test('test') }"> instead of <button v-promise-btn @click="test('test')"> Working example as answer for start post: https://codesandbox.io/s/yql5757jl9 |
@STUkh Hey, sorry I've been a bit inactive on here lately. Awesome news! thanks for getting to the bottom of this :) |
We want to use this component in a basket page on a commerce platform, where each item in the basket has a remove button. However, upon loading the basket page, all items that were in the basket suddenly disappear as the delete action is triggered for every row upon render of the page; I changed as per the advice to |
I am opening this because it is still an issue like reported in #2 - however it looks like there is no activity on that issue.
vue-promise-btn does not like function arguments at all, I want to be able to pass my vee-validate scope directly into the method rather than having to define an additional data property.
Here is a link to the issue reproduced in CodeSandbox, I also included your suggestion from issue #2 which does not work either.
https://codesandbox.io/s/6w4vp0n1l3
The text was updated successfully, but these errors were encountered: