hof 20.1.11 → 20.1.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,3 +39,4 @@ Here are the fields you call this behaviour first to set config for it:
39
39
  `groupOptional`: (Optional) set this to true if you want to land on the radio button question if all records in the group are deleted after creation,
40
40
  `returnTo`: (Required) the next step if you want to add another object to this group
41
41
  ```
42
+ N.B. in the above example we use `continueOnEdit: true` on the individual record step (i.e. `/add-address`) to ensure we revisit the grouped fields page otherwise it will not be added to the group and the user will be returned to the 'Check Your Answers' page upon a field edit.
@@ -59,7 +59,7 @@ module.exports = SuperClass => class extends SuperClass {
59
59
  fieldData.value = fieldSpec.derivation ?
60
60
  this.runCombinerForDerivedField(fieldSpec, req) : fieldData.value;
61
61
  fieldData.value = (typeof fieldSpec.parse === 'function') ?
62
- fieldSpec.parse(fieldData.value) : fieldData.value;
62
+ fieldSpec.parse(fieldData.value, req) : fieldData.value;
63
63
  }
64
64
 
65
65
  return fieldData;
@@ -1,4 +1,4 @@
1
- <div id="{{toggle}}-panel" class="{{#radioOption}}govuk-radios__conditional govuk-radios__conditional--hidden{{/radioOption}}
2
- {{^radioOption}}govuk-checkboxes__conditional govuk-checkboxes__conditional--hidden{{/radioOption}}">
1
+ <div id="{{toggle}}-panel" class="{{#radioOption}}govuk-radios__conditional{{/radioOption}}
2
+ {{^radioOption}}govuk-checkboxes__conditional{{/radioOption}}">
3
3
  {{#renderMixin}}{{/renderMixin}}
4
4
  </div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "20.1.11",
4
+ "version": "20.1.14",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",