mirror of
https://github.com/youzan/vant.git
synced 2026-01-14 06:03:45 +08:00
fix(Field): should not modify the value if it's within the min/max (#13282)
This commit is contained in:
@@ -346,7 +346,9 @@ export default defineComponent({
|
||||
props.min ?? -Infinity,
|
||||
props.max ?? Infinity,
|
||||
);
|
||||
value = adjustedValue.toString();
|
||||
if (+value !== adjustedValue) {
|
||||
value = adjustedValue.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user