@ukhomeoffice/cop-react-form-renderer 3.26.0 → 3.26.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.
@@ -152,6 +152,7 @@ var FormComponent = function FormComponent(_ref) {
152
152
  content: _utils.default.interpolateString(component.content, formData),
153
153
  hint: _utils.default.interpolateString(component.hint, formData),
154
154
  cya_label: _utils.default.interpolateString(component.cya_label, formData),
155
+ suffix: _utils.default.interpolateString(component.suffix, formData),
155
156
  options: options,
156
157
  value: value || _utils.default.Component.defaultValue(component),
157
158
  onChange: onComponentChangeExtended,
@@ -191,7 +191,7 @@ var InternalFormRenderer = function InternalFormRenderer(_ref2) {
191
191
 
192
192
 
193
193
  (0, _react.useEffect)(function () {
194
- if (components && _pages && _data && (['load', 'submit'].includes(pagePoint) || viewOnly)) {
194
+ if (components && _pages && _data && (pagePoint === 'load' || viewOnly)) {
195
195
  var _data$formStatus;
196
196
 
197
197
  setData(_utils.default.Data.setupForm(_pages, components, _data));
@@ -232,7 +232,8 @@ var getChildJsx = function getChildJsx(parent, child) {
232
232
  component: child,
233
233
  value: child.value,
234
234
  onChange: parent.onChange,
235
- key: child.key
235
+ key: child.key,
236
+ formData: parent.formData
236
237
  });
237
238
  };
238
239
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ukhomeoffice/cop-react-form-renderer",
3
- "version": "3.26.0",
3
+ "version": "3.26.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",