From b4049b35eae46c8729f2c489a3a67f5e9b5abe05 Mon Sep 17 00:00:00 2001 From: gayanSandamal Date: Wed, 9 Aug 2023 19:10:29 +0530 Subject: [PATCH] LAN-715 - set default value when the value is required and exceeded the min max values --- components/src/core/components/Input/Number/Number.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/src/core/components/Input/Number/Number.vue b/components/src/core/components/Input/Number/Number.vue index a31cb848..157b9308 100644 --- a/components/src/core/components/Input/Number/Number.vue +++ b/components/src/core/components/Input/Number/Number.vue @@ -115,10 +115,10 @@ export default defineComponent({ number.value = Number(value); if (!(number.value === undefined || number.value === null)) { if (number.value <= props.min) { - number.value = props.min; + number.value = props.defaultValue || 0; } if (number.value >= props.max) { - number.value = props.max; + number.value = props.defaultValue || 0; } } } else {