Skip to content

Commit

Permalink
Merge pull request #13673 from ashikjs/issues-13662/calender-month-se…
Browse files Browse the repository at this point in the history
…lection-by-keyboard-space-not-work

fix: #13662 || Calendar: Calendar is closed when month view press space
  • Loading branch information
cetincakiroglu committed Sep 21, 2023
2 parents ff3ebc4 + 638f83a commit 3990262
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2051,18 +2051,11 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor {
break;
}

//enter
case 13: {
this.onMonthSelect(event, index);
event.preventDefault();
break;
}

//enter
//space
case 13:
case 32: {
this.overlayVisible = false;
this.onMonthSelect(event, index);
event.preventDefault();
break;
}
Expand Down

1 comment on commit 3990262

@vercel
Copy link

@vercel vercel bot commented on 3990262 Sep 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.