From 397d57cb4aa931bfd5a872aa8d6540f11e7650d3 Mon Sep 17 00:00:00 2001 From: "petr.prikryl" Date: Sat, 15 Mar 2025 19:20:03 +0100 Subject: [PATCH] fix: empty string emittedValue is equal to 0 in newValue --- src/component.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component.vue b/src/component.vue index a6b190d..1209f91 100644 --- a/src/component.vue +++ b/src/component.vue @@ -119,7 +119,7 @@ export default defineComponent({ watch( () => props.modelValue, (newValue) => { - if (emittedValue.value != newValue) { + if (emittedValue.value !== newValue) { maskedValue.value = formatNumber.format(newValue) } }