diff --git a/Modal.astro b/Modal.astro index f36a8f8..46ce679 100644 --- a/Modal.astro +++ b/Modal.astro @@ -130,7 +130,7 @@ const { triggerId, title, closeText = 'Close' } = Astro.props modalCloseButton!.addEventListener('click', closeModal) }) - window.closeModal = closeModal + window.close = closeModal // Listen for view transitions document.addEventListener('astro:after-swap', () => { diff --git a/package.json b/package.json index cc6834d..9892d71 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "accessible-astro-components", "description": "A set of Accessible, easy to use, Front-end UI Components for Astro.", - "version": "2.3.5", + "version": "2.3.6", "author": "Mark Teekman", "homepage": "https://accessible-astro.netlify.app/accessible-components/", "type": "module",