Skip to content

Commit 82883d2

Browse files
author
“RafaelGondi”
committed
fix: corrige problema de reatividade no v-model do NumberInput
1 parent 0dd9126 commit 82883d2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/NumberInput.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ let cdsBrlBiding = {};
230230
231231
232232
/* WATCHERS */
233+
watch(model, (newValue, oldValue) => {
234+
if (newValue !== oldValue) {
235+
internalValue.value = newValue;
236+
}
237+
}, {immediate: true});
238+
233239
watch(internalValue, (value, oldValue) => {
234240
if (value !== oldValue) {
235241
let stringifiedInput = String(value);

0 commit comments

Comments
 (0)