From 3f4d007f0e155c911e473f6bf6941ecdfa68affa Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 31 Mar 2022 10:48:41 +0200 Subject: [PATCH] Only focus focusable HTMLElements Signed-off-by: Thomas Citharel --- js/src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/App.vue b/js/src/App.vue index d8a7cd4d..c67807e8 100644 --- a/js/src/App.vue +++ b/js/src/App.vue @@ -221,7 +221,7 @@ export default class App extends Vue { ? this.routerView?.$refs?.componentFocusTarget : this.routerView?.$el ) as HTMLElement; - if (focusTarget) { + if (focusTarget && focusTarget instanceof Element) { // Make focustarget programmatically focussable focusTarget.setAttribute("tabindex", "-1");