Skip to content

Commit

Permalink
fix(components): allow number and null as values on text input
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Feb 27, 2023
1 parent c1bb84f commit 0b3876f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/admin-components/src/components/DefaultTextInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {generateFieldId, useElement} from '@myparcel-pdk/frontend-core/src';
import {useVModel} from '@vueuse/core';
// eslint-disable-next-line vue/no-unused-properties
const props = defineProps({modelValue: {type: String, default: null}});
const props = defineProps<{modelValue: string | number | null}>();
const emit = defineEmits(['update:modelValue']);
const model = useVModel(props, undefined, emit);
Expand Down

0 comments on commit 0b3876f

Please sign in to comment.