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;