From c5e9ba91d426d34511f24096695d42d83ed49d62 Mon Sep 17 00:00:00 2001 From: Tom Kay Date: Thu, 29 Jul 2021 16:26:31 +0100 Subject: [PATCH] lazily create the modal container --- package.json | 2 +- src/index.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index a3aaba8..52c97ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@packaged-ui/modal", - "version": "1.5.0", + "version": "1.5.1", "repository": "git@github.com:packaged-ui/modal.git", "author": "Tom Kay ", "license": "MIT", diff --git a/src/index.js b/src/index.js index dfbb8d5..673abe5 100644 --- a/src/index.js +++ b/src/index.js @@ -223,7 +223,6 @@ export class Modal // already been initialized return; } - _getContainerElements(rootElement); rootElement.addEventListener( 'click', (e) =>