Only focus focusable HTMLElements
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
de5a5345b6
commit
3f4d007f0e
@ -221,7 +221,7 @@ export default class App extends Vue {
|
|||||||
? this.routerView?.$refs?.componentFocusTarget
|
? this.routerView?.$refs?.componentFocusTarget
|
||||||
: this.routerView?.$el
|
: this.routerView?.$el
|
||||||
) as HTMLElement;
|
) as HTMLElement;
|
||||||
if (focusTarget) {
|
if (focusTarget && focusTarget instanceof Element) {
|
||||||
// Make focustarget programmatically focussable
|
// Make focustarget programmatically focussable
|
||||||
focusTarget.setAttribute("tabindex", "-1");
|
focusTarget.setAttribute("tabindex", "-1");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user