From e6f928403459120d2d2f00fcfd3d78fc28a50aed Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Wed, 20 Jul 2022 22:58:36 +0530 Subject: [PATCH] added resize observer polyfill --- components.js | 2 +- index.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components.js b/components.js index 97ee63f..d6a044a 100644 --- a/components.js +++ b/components.js @@ -1395,7 +1395,7 @@ customElements.define('sm-popup', class extends HTMLElement { } } }); - resizeObserver.observe(this); + this.resizeObserver.observe(this); this.mutationObserver = new MutationObserver(entries => { this.updateFocusableList() diff --git a/index.html b/index.html index 05a7a69..cf0a204 100644 --- a/index.html +++ b/index.html @@ -16,6 +16,7 @@ rel="stylesheet"> +