@getflip/swirl-components 0.149.0 → 0.149.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/components.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-02-08T14:22:39",
2
+ "timestamp": "2024-02-08T14:43:58",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "3.3.1",
@@ -114,6 +114,9 @@ const SwirlLightbox = class {
114
114
  this.unlockBodyScroll();
115
115
  }
116
116
  onKeyDown(event) {
117
+ if (!this.modal.shown) {
118
+ return;
119
+ }
117
120
  if (event.code === "Escape") {
118
121
  event.stopImmediatePropagation();
119
122
  this.close();