@bigbinary/neeto-themes-frontend 2.0.2 → 2.0.3

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/dist/index.js CHANGED
@@ -670,9 +670,9 @@ var ImageBlock = function ImageBlock(_ref) {
670
670
  label: buildLabel("".concat(name, "Position"), "image"),
671
671
  options: options || POSITION_OPTIONS,
672
672
  placeholder: t("neetoThemes.common.left"),
673
- value: toLabelAndValue((_findBy = findBy({
673
+ value: toLabelAndValue(((_findBy = findBy({
674
674
  key: "".concat(name, "_position")
675
- }, values.properties)) === null || _findBy === void 0 ? void 0 : _findBy.value),
675
+ }, values.properties)) === null || _findBy === void 0 ? void 0 : _findBy.value) || (positionKeyInSchema === null || positionKeyInSchema === void 0 ? void 0 : positionKeyInSchema.defaultValue)),
676
676
  onChange: function onChange(option) {
677
677
  return setFieldValue("properties[".concat(positionKeyIndex, "].value"), option.value);
678
678
  }
@@ -1471,7 +1471,10 @@ var Card = function Card(_ref) {
1471
1471
  "data-cy": "delete-theme-menu-item",
1472
1472
  label: t("neetoThemes.build.leftSideBar.themes.themeOptions.delete"),
1473
1473
  isVisible: isFunction(onDeleteTheme),
1474
- onClick: handleDeleteTheme
1474
+ onClick: function onClick(e) {
1475
+ e.stopPropagation();
1476
+ handleDeleteTheme();
1477
+ }
1475
1478
  }]
1476
1479
  })]
1477
1480
  })]