fix(Field): should not modify the value if it's within the min/max (#13282)
This commit is contained in:
@@ -346,9 +346,11 @@ export default defineComponent({
|
|||||||
props.min ?? -Infinity,
|
props.min ?? -Infinity,
|
||||||
props.max ?? Infinity,
|
props.max ?? Infinity,
|
||||||
);
|
);
|
||||||
|
if (+value !== adjustedValue) {
|
||||||
value = adjustedValue.toString();
|
value = adjustedValue.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let formatterDiffLen = 0;
|
let formatterDiffLen = 0;
|
||||||
if (props.formatter && trigger === props.formatTrigger) {
|
if (props.formatter && trigger === props.formatTrigger) {
|
||||||
|
|||||||
Reference in New Issue
Block a user