Skip to content

Commit

Permalink
Merge pull request #81 from markteekman/bugfix/modal-close-function
Browse files Browse the repository at this point in the history
Use correct `close` method on `window` #79
  • Loading branch information
markteekman authored Apr 22, 2024
2 parents 29dab24 + ee0114c commit 8e9bda5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modal.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 8e9bda5

Please sign in to comment.