Skip to content

Commit 4c5c51e

Browse files
authored
Merge pull request #835 from Sysvale/refactor/number-input
refactor/number-input
2 parents b647d8e + f1f40a9 commit 4c5c51e

File tree

8 files changed

+460
-567
lines changed

8 files changed

+460
-567
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.84.0",
3+
"version": "3.85.0",
44
"description": "A design system built by Sysvale, using storybook and Vue components",
55
"repository": {
66
"type": "git",

src/components/BaseMobileInput.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,10 @@ watch(model, (newValue, oldValue) => {
437437
if (newValue !== oldValue) {
438438
internalValue.value = newValue;
439439
}
440+
441+
if (newValue === 0 || newValue === '0' || newValue === '' || newValue === null || newValue === undefined) {
442+
internalValue.value = (props.money || attrs.money) ? 'R$ 0,00' : '';
443+
}
440444
}, { immediate: true });
441445
442446
watch(internalValue, (value) => {

0 commit comments

Comments
 (0)