Skip to content

Commit

Permalink
Merge pull request #4587 from chz/fix/4586
Browse files Browse the repository at this point in the history
Fix #4586 Crashes when Tab pressed and calendar overlay is not showing
  • Loading branch information
tugcekucukoglu authored Nov 21, 2023
2 parents fb7a8a7 + 3f6dee1 commit 60f7cec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/calendar/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2245,7 +2245,9 @@ export default {
}
}
else if (event.keyCode === 9) {
DomHandler.getFocusableElements($vm.$refs.overlay).forEach(el => el.tabIndex = '-1');
if($vm.showOnFocus){
DomHandler.getFocusableElements($vm.$refs.overlay).forEach(el => el.tabIndex = '-1');
}
if ($vm.overlayVisible) {
$vm.overlayVisible = false;
}
Expand Down

0 comments on commit 60f7cec

Please sign in to comment.