diff --git a/packages/ui/src/components/va-date-input/VaDateInput.stories.ts b/packages/ui/src/components/va-date-input/VaDateInput.stories.ts index d5fe468b58..808e7c174f 100644 --- a/packages/ui/src/components/va-date-input/VaDateInput.stories.ts +++ b/packages/ui/src/components/va-date-input/VaDateInput.stories.ts @@ -234,3 +234,21 @@ export const NullValue = () => ({ `, }) + +export const EventListeners = () => ({ + components: { VaDateInput }, + data () { + return { + value: null, + } + }, + methods: { + onKeydown () { + console.log('onKeydown') + }, + }, + template: ` + [[value]]: {{ value === null ? 'null' : value }} + + `, +}) diff --git a/packages/ui/src/components/va-date-input/VaDateInput.vue b/packages/ui/src/components/va-date-input/VaDateInput.vue index b26a0a3132..f39ac7dc18 100644 --- a/packages/ui/src/components/va-date-input/VaDateInput.vue +++ b/packages/ui/src/components/va-date-input/VaDateInput.vue @@ -115,7 +115,6 @@ const VaDatePickerPropsDeclaration = extractComponentProps(VaDatePicker)