Skip to content

Commit

Permalink
fix(datepicker): Disable show-calendar-on-focus when show-calendar-on…
Browse files Browse the repository at this point in the history
…-button-click is true
  • Loading branch information
mst101 committed Jun 10, 2023
1 parent 66b59aa commit d89ea19
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/DateInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d89ea19

Please sign in to comment.