0👍
I guess this works for now
const value = computed({
get: (): any => props.modelValue,
set: (value: any) => {
if (value !== "") {
const float = parseFloat(value);
if (!isNaN(float)) {
emit("update:modelValue", float);
}
}
},
});
Source:stackexchange.com