@shoper/phoenix_design_system 1.17.13 → 1.17.14

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.
@@ -54,7 +54,7 @@ exports.HColorSwatches = class HColorSwatches extends phoenix_light_lit_element.
54
54
  this._handleColorClicked = (ev) => {
55
55
  ev.preventDefault();
56
56
  const $colorItem = ev.target;
57
- if ($colorItem.unclickable)
57
+ if ($colorItem.unclickable || !($colorItem instanceof color_item.HColorItem))
58
58
  return;
59
59
  this._toggleColorItem($colorItem);
60
60
  this._dispatchColorChangeEvent($colorItem);
@@ -50,7 +50,7 @@ let HColorSwatches = class HColorSwatches extends PhoenixLightLitElement {
50
50
  this._handleColorClicked = (ev) => {
51
51
  ev.preventDefault();
52
52
  const $colorItem = ev.target;
53
- if ($colorItem.unclickable)
53
+ if ($colorItem.unclickable || !($colorItem instanceof HColorItem))
54
54
  return;
55
55
  this._toggleColorItem($colorItem);
56
56
  this._dispatchColorChangeEvent($colorItem);
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.13",
5
+ "version": "1.17.14",
6
6
  "description": "phoenix design system",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",