Merge pull request #4587 from chz/fix/4586

Fix #4586 Crashes when Tab pressed and calendar overlay is not showing
pull/5039/head
Tuğçe Küçükoğlu 2023-11-21 20:49:56 +03:00 committed by GitHub
commit 60f7cecaad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}