From 1cfaacb02a60bd63b57960f81e35afbe292f6dc0 Mon Sep 17 00:00:00 2001 From: Dale Date: Tue, 9 Jul 2019 20:23:48 +0100 Subject: [PATCH] make resize listener object element unfocusable --- src/runtime/internal/dom.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/internal/dom.ts b/src/runtime/internal/dom.ts index f65d07117ce9..452347dc2904 100644 --- a/src/runtime/internal/dom.ts +++ b/src/runtime/internal/dom.ts @@ -223,6 +223,7 @@ export function add_resize_listener(element, fn) { const object = document.createElement('object'); object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;'); object.type = 'text/html'; + object.tabIndex = -1; let win;