From d89ea19c545cf3cd79358158d710d8e138184be9 Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Thu, 8 Jun 2023 15:27:07 +0000 Subject: [PATCH] fix(datepicker): Disable show-calendar-on-focus when show-calendar-on-button-click is true --- src/components/DateInput.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/DateInput.vue b/src/components/DateInput.vue index 1e7cb397..b5799cfb 100644 --- a/src/components/DateInput.vue +++ b/src/components/DateInput.vue @@ -250,9 +250,12 @@ export default { } }, /** - * Opens the calendar when `show-calendar-on-focus` is true + * Opens the calendar when `show-calendar-on-focus` is true (unless `show-calendar-on-button-click` is true) */ + // eslint-disable-next-line complexity handleInputFocus() { + if (this.showCalendarOnButtonClick) return + this.isInputFocused = true if (!this.isOpen && this.shouldToggleOnFocus) {