8144-devToTest_2448 #963

Merged
alexm merged 347 commits from 8144-devToTest_2448 into test 2024-11-19 07:54:42 +00:00
1 changed files with 5 additions and 0 deletions
Showing only changes of commit abd7b76636 - Show all commits

View File

@ -27,6 +27,10 @@ const $props = defineProps({
type: Boolean,
default: true,
},
emptyToNull: {
type: Boolean,
default: true,
},
});
const { validations } = useValidator();
@ -39,6 +43,7 @@ const value = computed({
return $props.modelValue;
},
set(value) {
if ($props.emptyToNull && value === '') value = null;
emit('update:modelValue', value);
},
});