formeo 3.1.1 → 3.1.2

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/formeo.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 3.1.0
4
+ Version: 3.1.1
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7
 
@@ -434,7 +434,7 @@ if (window !== void 0) {
434
434
  window.SmartTooltip = SmartTooltip;
435
435
  }
436
436
  const name$1 = "formeo";
437
- const version$2 = "3.1.0";
437
+ const version$2 = "3.1.1";
438
438
  const type = "module";
439
439
  const main = "dist/formeo.cjs.js";
440
440
  const module = "dist/formeo.es.js";
@@ -7035,16 +7035,17 @@ class Field extends Component {
7035
7035
  return this.debouncedUpdateEditPanels();
7036
7036
  }
7037
7037
  if (evt.target.contentEditable) {
7038
- const parentClassList = evt.target.parentElement.classList;
7038
+ const target = evt.target;
7039
+ const parentClassList = target.parentElement.classList;
7039
7040
  const isOption = parentClassList.contains("f-checkbox") || parentClassList.contains("f-radio");
7040
7041
  if (isOption) {
7041
- const option2 = evt.target.parentElement;
7042
+ const option2 = target.parentElement;
7042
7043
  const optionWrap = option2.parentElement;
7043
7044
  const optionIndex = indexOfNode(option2, optionWrap);
7044
- super.set(`options[${optionIndex}].label`, evt.target.innerHTML);
7045
+ this.setData(`options[${optionIndex}].label`, target.innerHTML);
7045
7046
  return this.debouncedUpdateEditPanels();
7046
7047
  }
7047
- super.set("content", evt.target.innerHTML);
7048
+ this.setData("content", target.innerHTML || target.value);
7048
7049
  }
7049
7050
  }
7050
7051
  };
@@ -9752,13 +9753,6 @@ class TextAreaControl extends Control {
9752
9753
  config: {
9753
9754
  label: mi18n.get("controls.form.textarea")
9754
9755
  },
9755
- // actions here will be applied to the preview in the editor
9756
- action: {
9757
- input: function({ target: { value } }) {
9758
- var _a;
9759
- (_a = this.setData) == null ? void 0 : _a.call(this, "value", value);
9760
- }
9761
- },
9762
9756
  meta: {
9763
9757
  group: "common",
9764
9758
  icon: "textarea",
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 3.1.0
4
+ Version: 3.1.1
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7