Skip to content

Conversation

@setefocos
Copy link

@setefocos setefocos commented Oct 31, 2017

I forked this project because the input event was cycling between 2 differents inputs, one updating de value of the other, on a dead loop. The solution is this blur event:

<money v-bind="money_normal" v-model="form.custo"></money> <money v-bind="money_percent" v-model="form.margem_lucro_varejo" @blur="calculaPrecoVarejo"></money> <money v-bind="money_normal" v-model="form.preco_varejo" @blur="calculaMargemLucroVarejo"></money>

I forked this project because the input event was cycling between 2 differents inputs, one updating de value of the other, on a dead loop. The solution is this blur event:

<money v-bind="money_normal" v-model="form.custo"></money>
<money v-bind="money_percent" v-model="form.margem_lucro_varejo" @blur="calculaPrecoVarejo"></money>
<money v-bind="money_normal" v-model="form.preco_varejo" @blur="calculaMargemLucroVarejo"></money>
diegomagikal added a commit to diegomagikal/v-money that referenced this pull request Jan 22, 2019
@aamsur
Copy link

aamsur commented Feb 12, 2019

you can also try @blur.native="yourFunction"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants