@shoper/phoenix_design_system 1.17.10-14 → 1.17.10-15

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.
@@ -380,8 +380,8 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
380
380
  (_a = this._searchForm) === null || _a === void 0 ? void 0 : _a.removeEventListener('keydown', this._preventSubmitOnSearchClear);
381
381
  if (this.popup) {
382
382
  window.removeEventListener('resize', this._updateShouldRenderAsPopup);
383
- document.removeEventListener(sheet_constants.SHEET_EVENTS.opened, this._showPopup);
384
- document.removeEventListener(sheet_constants.SHEET_EVENTS.closed, this._hidePopup);
383
+ document.body.removeEventListener(sheet_constants.SHEET_EVENTS.opened, this._showPopup);
384
+ document.body.removeEventListener(sheet_constants.SHEET_EVENTS.closed, this._hidePopup);
385
385
  }
386
386
  }
387
387
  _setupContext() {
@@ -465,8 +465,8 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
465
465
  this._searchForm.addEventListener('keydown', this._preventSubmitOnSearchClear);
466
466
  if (this.popup) {
467
467
  window.addEventListener('resize', this._updateShouldRenderAsPopup);
468
- document.addEventListener(sheet_constants.SHEET_EVENTS.opened, this._showPopup);
469
- document.addEventListener(sheet_constants.SHEET_EVENTS.closed, this._hidePopup);
468
+ document.body.addEventListener(sheet_constants.SHEET_EVENTS.opened, this._showPopup);
469
+ document.body.addEventListener(sheet_constants.SHEET_EVENTS.closed, this._hidePopup);
470
470
  }
471
471
  }
472
472
  _updateSearchView(searchPhrase, shouldShowMessage, shouldUpdateSearchPhrase = true) {
@@ -376,8 +376,8 @@ let HSearch = class HSearch extends PhoenixLightLitElement {
376
376
  (_a = this._searchForm) === null || _a === void 0 ? void 0 : _a.removeEventListener('keydown', this._preventSubmitOnSearchClear);
377
377
  if (this.popup) {
378
378
  window.removeEventListener('resize', this._updateShouldRenderAsPopup);
379
- document.removeEventListener(SHEET_EVENTS.opened, this._showPopup);
380
- document.removeEventListener(SHEET_EVENTS.closed, this._hidePopup);
379
+ document.body.removeEventListener(SHEET_EVENTS.opened, this._showPopup);
380
+ document.body.removeEventListener(SHEET_EVENTS.closed, this._hidePopup);
381
381
  }
382
382
  }
383
383
  _setupContext() {
@@ -461,8 +461,8 @@ let HSearch = class HSearch extends PhoenixLightLitElement {
461
461
  this._searchForm.addEventListener('keydown', this._preventSubmitOnSearchClear);
462
462
  if (this.popup) {
463
463
  window.addEventListener('resize', this._updateShouldRenderAsPopup);
464
- document.addEventListener(SHEET_EVENTS.opened, this._showPopup);
465
- document.addEventListener(SHEET_EVENTS.closed, this._hidePopup);
464
+ document.body.addEventListener(SHEET_EVENTS.opened, this._showPopup);
465
+ document.body.addEventListener(SHEET_EVENTS.closed, this._hidePopup);
466
466
  }
467
467
  }
468
468
  _updateSearchView(searchPhrase, shouldShowMessage, shouldUpdateSearchPhrase = true) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@shoper/phoenix_design_system",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "1.17.10-14",
5
+ "version": "1.17.10-15",
6
6
  "description": "phoenix design system",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",