Skip to content
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

Added blur event. #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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