@gem-sdk/pages 1.29.4 → 1.29.11

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.
@@ -559,7 +559,7 @@ const Toolbar = ()=>{
559
559
  if (isDragging.current) return;
560
560
  if (isResizeSpacing.current) return;
561
561
  const $target = e.target;
562
- if (!$target) {
562
+ if (!$target || typeof $target.closest !== 'function') {
563
563
  removeHoverOverlayComponent();
564
564
  return;
565
565
  }
@@ -555,7 +555,7 @@ const Toolbar = ()=>{
555
555
  if (isDragging.current) return;
556
556
  if (isResizeSpacing.current) return;
557
557
  const $target = e.target;
558
- if (!$target) {
558
+ if (!$target || typeof $target.closest !== 'function') {
559
559
  removeHoverOverlayComponent();
560
560
  return;
561
561
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/pages",
3
- "version": "1.29.4",
3
+ "version": "1.29.11",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -25,7 +25,7 @@
25
25
  "next-seo": "^6.0.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@gem-sdk/core": "1.29.4",
28
+ "@gem-sdk/core": "1.29.5",
29
29
  "@gem-sdk/plugin-cookie-bar": "1.25.0",
30
30
  "@gem-sdk/plugin-quick-view": "1.25.0",
31
31
  "@gem-sdk/plugin-sticky-add-to-cart": "1.25.0"