@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 && (
|
|
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));
|