We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7326afb + fb8f595 commit d434fcbCopy full SHA for d434fcb
src/formkit/PrimeCalendar.vue
@@ -20,6 +20,10 @@ function handleBlur(e: CalendarBlurEvent) {
20
context?.handlers.blur(e.value)
21
}
22
23
+function handleClearClick() {
24
+ context?.node.input(null)
25
+}
26
+
27
const styleClass = computed(() => (context?.state.validationVisible && !context?.state.valid) ? `${attrs.value?.class} p-invalid` : attrs.value?.class)
28
</script>
29
@@ -82,6 +86,7 @@ const styleClass = computed(() => (context?.state.validationVisible && !context?
82
86
@date-select="handleSelect"
83
87
@input="handleInput"
84
88
@blur="handleBlur"
89
+ @clear-click="handleClearClick"
85
90
/>
91
</div>
92
</template>
0 commit comments