mirror of
https://github.com/directus/directus.git
synced 2026-01-29 04:28:04 -05:00
Fix decimal input on the interface (#10491)
This commit is contained in:
@@ -232,7 +232,12 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
if (props.type === 'number') {
|
||||
emit('update:modelValue', Number(value));
|
||||
const parsedNumber = Number(value);
|
||||
|
||||
// Ignore if numeric value remains unchanged
|
||||
if (props.modelValue !== parsedNumber) {
|
||||
emit('update:modelValue', parsedNumber);
|
||||
}
|
||||
} else {
|
||||
if (props.slug === true) {
|
||||
const endsWithSpace = value.endsWith(' ');
|
||||
|
||||
Reference in New Issue
Block a user