Potential null check
parent
a361f17c8d
commit
e560f322c1
|
@ -205,7 +205,7 @@ export default {
|
||||||
this.$refs.lastHiddenFocusableElement.tabIndex = -1;
|
this.$refs.lastHiddenFocusableElement.tabIndex = -1;
|
||||||
},
|
},
|
||||||
onFocusout(event) {
|
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;
|
this.$refs.lastHiddenFocusableElement.tabIndex = this.$refs.firstHiddenFocusableElement.tabIndex = undefined;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue