@ -55,7 +55,7 @@ watch(
{ flush: 'post' },
)
const placeholder = computed(() => (isDateInvalid ? 'Invalid date' : readOnly ? 'Select date' : ''))
const placeholder = computed(() => (isDateInvalid ? 'Invalid date' : ''))
</script>
<template>
@ -64,7 +64,7 @@ watch(
:bordered="false"
class="!w-full px-1"
format="YYYY-MM-DD HH:mm"
:placeholder="isDateInvalid ? 'Invalid date' : !readOnly ? 'Select date and time' : ''"
:placeholder="isDateInvalid ? 'Invalid date' : ''"
:allow-clear="!readOnly"
:input-read-only="true"
:dropdown-class-name="randomClass"
@ -75,7 +75,7 @@ watch(
use12-hours
format="HH:mm"
:placeholder="isTimeInvalid ? 'Invalid time' : !readOnly ? 'Select time' : ''"
:placeholder="isTimeInvalid ? 'Invalid time' : ''"
:open="readOnly ? false : open"
@ -53,7 +53,7 @@ watch(
const placeholder = computed(() => (isYearInvalid ? 'Invalid year' : readOnly ? 'Select year' : ''))
const placeholder = computed(() => (isYearInvalid ? 'Invalid year' : ''))