Fixed #940 - Calendar component throws error on blur if popup is not visible

pull/973/head
Cagatay Civici 2021-02-04 15:03:54 +03:00
parent 6eef094761
commit 8e98c79e86
1 changed files with 4 additions and 1 deletions

View File

@ -1987,7 +1987,10 @@ export default {
}
}
else if (event.keyCode === 9) {
DomHandler.getFocusableElements(this.overlay).forEach(el => el.tabIndex = '-1');
if (this.overlay) {
DomHandler.getFocusableElements(this.overlay).forEach(el => el.tabIndex = '-1');
}
if (this.overlayVisible) {
this.overlayVisible = false;
}