Potential null check

pull/2835/head
mertsincan 2022-08-09 11:20:32 +01:00
parent a361f17c8d
commit e560f322c1
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ export default {
this.$refs.lastHiddenFocusableElement.tabIndex = -1;
},
onFocusout(event) {
if (!this.$el.contains(event.relatedTarget)) {
if (!this.$el.contains(event.relatedTarget) && this.$refs.lastHiddenFocusableElement && this.$refs.firstHiddenFocusableElement) {
this.$refs.lastHiddenFocusableElement.tabIndex = this.$refs.firstHiddenFocusableElement.tabIndex = undefined;
}
},