diff --git a/packages/client/src/components/inspector/InspectorDataField/EditInput.vue b/packages/client/src/components/inspector/InspectorDataField/EditInput.vue index 68a1c3d3..2f9969ab 100644 --- a/packages/client/src/components/inspector/InspectorDataField/EditInput.vue +++ b/packages/client/src/components/inspector/InspectorDataField/EditInput.vue @@ -19,6 +19,12 @@ const emit = defineEmits<{ 'update:modelValue': [value: string] }>() +const inputType = computed(() => { + if (props.customType === 'date') + return 'datetime-local' + return '' +}) + // TODO: keyboard shortcut, esc to cancel, enter to submit // and show tooltip on button when hovering @@ -52,7 +58,7 @@ watch(value, checkWarning())