From 701ccd47ed57bcea17ea09fdf475dee8f6e7f74c Mon Sep 17 00:00:00 2001 From: Sacha Stafyniak Date: Wed, 12 Apr 2023 19:23:09 +0200 Subject: [PATCH] fix(popover): use autoHide setting on day click --- src/components/DatePicker.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/DatePicker.vue b/src/components/DatePicker.vue index 3ca80301a..ee4f4bf4d 100644 --- a/src/components/DatePicker.vue +++ b/src/components/DatePicker.vue @@ -433,13 +433,12 @@ export default { this.$emit('daykeydown', day); }, handleDayClick(day) { - const { keepVisibleOnInput, visibility } = this.popover_; + const { autoHide, visibility } = this.popover_; const opts = { patch: PATCH.DATE, adjustTime: true, formatInput: true, - hidePopover: - this.isDate && !keepVisibleOnInput && visibility !== 'visible', + hidePopover: typeof autoHide === 'boolean' ? autoHide : true, }; if (this.isRange) { if (!this.isDragging) {