[Vuejs]-Vuetify 3 decimal number input

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);
      }
    }
  },
});

Leave a comment