Skip to content

Commit 087d087

Browse files
authored
Merge pull request #77 from olc-systems-sro/fix-0
fix: empty string emittedValue is equal to 0 in newValue
2 parents cca00d2 + 397d57c commit 087d087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/component.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export default defineComponent({
119119
watch(
120120
() => props.modelValue,
121121
(newValue) => {
122-
if (emittedValue.value != newValue) {
122+
if (emittedValue.value !== newValue) {
123123
maskedValue.value = formatNumber.format(newValue)
124124
}
125125
}

0 commit comments

Comments
 (0)