Skip to content

Commit

Permalink
Merge pull request #39 from qld-gov-au/QOL-8091-PlsPlusAddress-patch
Browse files Browse the repository at this point in the history
Qol 8091 pls plus address patch
  • Loading branch information
devonpis authored Apr 26, 2022
2 parents 46efeff + 6e4a06b commit 11f4d63
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion src/components/PlsPlusAddress/PlsPlusAddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,14 @@ export class PlsPlusAddress extends FieldsetComponent {
this.components = options.components;
} else {
const components =
this.hook("addComponents", this.componentComponents, this) || [];
this.hook(
"addComponents",
_.defaultsDeep(
this.componentComponents,
this.defaultSchema.components
),
this
) || [];
components.forEach((component) => this.addComponent(component, data));
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/FormioLoader/FormioLoader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ test("FormioLoader with custom controller hook", async () => {
address3: "",
autocompleteAddress: "",
city: "",
mode: "autocomplete",
mode: "manual",
postcode: "",
selectedAddress: "",
selectedAddress: "QLD",
state: "QLD",
},
submit: false,
Expand Down

0 comments on commit 11f4d63

Please sign in to comment.