datasync-dynamic-form 1.3.8 → 1.3.9

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.
@@ -150,7 +150,7 @@ export class DsDynamicForm extends Component {
150
150
  } }), this._error_label(field)] }));
151
151
  };
152
152
  this._memo_field = (field) => {
153
- return (_jsxs("div", { className: "memo-field", children: [this.getFieldLabelTitle(field), _jsx("textarea", { className: "form-control", readOnly: this.props.read_only ? this.props.read_only : false, value: this.getFieldData(field.name), placeholder: field.placeholder, rows: field.rows, onChange: (e) => {
153
+ return (_jsxs("div", { className: "memo-field", children: [this.getFieldLabelTitle(field), _jsx("textarea", { className: "form-control", readOnly: this.props.read_only ? this.props.read_only : false, value: this.getFieldData(field.name).replace(/\\n/g, "\n"), placeholder: field.placeholder, rows: field.rows, onChange: (e) => {
154
154
  e.preventDefault();
155
155
  this.dynamicInputTextChangeHandler({ event: e, fieldObject: field });
156
156
  } }), this._error_label(field)] }));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "datasync-dynamic-form",
3
3
  "description": "Datasync Dynamic Form component",
4
- "version": "1.3.8",
4
+ "version": "1.3.9",
5
5
  "main": "dist/DsDynamicForm.js",
6
6
  "module": "dist/DsDynamicForm.js",
7
7
  "types": "dist/types/DsDynamicForm.d.ts",