diff --git a/docs/components/date-picker/DatePicker.vue b/docs/components/date-picker/DatePicker.vue index 0d62c6a352..93e9c2ff78 100644 --- a/docs/components/date-picker/DatePicker.vue +++ b/docs/components/date-picker/DatePicker.vue @@ -32,6 +32,11 @@ const attrs = { 'is-dark': { selector: 'html', darkClass: 'dark' }, 'first-day-of-week': 2 } + +function onDayClick(_: any, event: MouseEvent): void { + const target = event.target as HTMLElement + target.blur() +} diff --git a/docs/content/2.components/date-picker.md b/docs/content/2.components/date-picker.md index 310147c2e3..f913d25e3b 100644 --- a/docs/content/2.components/date-picker.md +++ b/docs/content/2.components/date-picker.md @@ -70,6 +70,11 @@ const attrs = { 'is-dark': { selector: 'html', darkClass: 'dark' }, 'first-day-of-week': 2 } + +function onDayClick(_: any, event: MouseEvent): void { + const target = event.target as HTMLElement + target.blur() +}