Merge pull request #1580 from thecodingmachine/fix-tab

Fix tab index on embedded iframes
This commit is contained in:
David Négrier 2021-11-24 12:17:25 +01:00 committed by GitHub
commit 2f632ae472
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,6 +162,7 @@ export class EmbeddedWebsiteManager {
const iframe = document.createElement("iframe"); const iframe = document.createElement("iframe");
iframe.src = absoluteUrl; iframe.src = absoluteUrl;
iframe.tabIndex = -1;
iframe.style.width = embeddedWebsiteEvent.position.width + "px"; iframe.style.width = embeddedWebsiteEvent.position.width + "px";
iframe.style.height = embeddedWebsiteEvent.position.height + "px"; iframe.style.height = embeddedWebsiteEvent.position.height + "px";
iframe.style.margin = "0"; iframe.style.margin = "0";