We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hi,
If v-model value is 0.00 then input field should clear on focus
0.00
Input remains same
http://jsfiddle.net/cvg6c4r3/6/
I have also tried adding a directive but no luck
Vue.directive('clear-zero', { bind: function (el, binding, vnode) { el.onfocus = function () { if (parseFloat(el.value) === 0) { console.log('Clear value'); el.value = null; } }; } });
<vue-numeric v-clear-zero currency="$" :precision="2" v-model.number="money"></vue-numeric>
Ref #26
The text was updated successfully, but these errors were encountered:
Hi @ankurk91,
Sorry for the returning issue. Should be fixed in v2.2.6
Sorry, something went wrong.
No branches or pull requests
Hi,
Expected Behavior
If v-model value is
0.00
then input field should clear on focusActual Behavior
Input remains same
Steps to Reproduce the Problem
http://jsfiddle.net/cvg6c4r3/6/
I have also tried adding a directive but no luck
Specifications
Ref #26
The text was updated successfully, but these errors were encountered: