diff --git a/components/CoinLockForm.vue b/components/CoinLockForm.vue index 7d515cb6..965a0c90 100644 --- a/components/CoinLockForm.vue +++ b/components/CoinLockForm.vue @@ -112,7 +112,7 @@ {{ $td('Due block', 'form.lock-due-block') }} diff --git a/components/common/InputMaskedAmount.vue b/components/common/InputMaskedAmount.vue index 40b30c55..b0f7ad43 100644 --- a/components/common/InputMaskedAmount.vue +++ b/components/common/InputMaskedAmount.vue @@ -3,7 +3,6 @@ import {IMaskDirective} from 'vue-imask'; export default { - ideFix: null, imaskAmount: { mask: Number, scale: 18, // digits after point, 0 for integers @@ -26,6 +25,9 @@ type: [String, Number], }, }, + emits: [ + 'input', + ], data() { return { // inner value set by imask @@ -41,7 +43,7 @@ imaskOptions() { return { ...this.$options.imaskAmount, - scale: this.scale || this.$options.imaskAmount.scale, + scale: this.scale ?? this.$options.imaskAmount.scale, }; }, }, @@ -75,5 +77,5 @@ diff --git a/components/common/InputMaskedInteger.vue b/components/common/InputMaskedInteger.vue index af17a432..02bf60db 100644 --- a/components/common/InputMaskedInteger.vue +++ b/components/common/InputMaskedInteger.vue @@ -1,69 +1,34 @@