Skip to content

Commit 397d57c

Browse files
author
petr.prikryl
committed
fix: empty string emittedValue is equal to 0 in newValue
1 parent cca00d2 commit 397d57c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/component.vue

Lines changed: 1 addition & 1 deletion
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)