Skip to content

Commit

Permalink
fix(input-date-picker): no longer close when navigating month with ch…
Browse files Browse the repository at this point in the history
…evron actions
  • Loading branch information
anveshmekala committed Feb 12, 2025
1 parent b67aa39 commit 2cb566b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,13 @@ export class DatePickerMonthHeader extends LitElement {

if (isTargetLastValidMonth) {
if (!this.position) {
await (isDirectionLeft ? this.nextMonthAction.setFocus() : this.prevMonthAction.setFocus());
if (isDirectionLeft) {
this.nextMonthAction.disabled = false;
await this.nextMonthAction.setFocus();
} else {
this.prevMonthAction.disabled = false;
await this.prevMonthAction.setFocus();
}
} else {
this.yearInputEl.value.focus();
}
Expand Down

0 comments on commit 2cb566b

Please sign in to comment.