Skip to content

Commit 62325d9

Browse files
authored
Merge pull request #863 from Sysvale/fix/number-input-model
Fix/number input model
2 parents 1316c63 + 82883d2 commit 62325d9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sysvale/cuida",
3-
"version": "3.94.0",
3+
"version": "3.94.1",
44
"description": "A design system built by Sysvale, using storybook and Vue components",
55
"repository": {
66
"type": "git",

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)