Skip to content

Commit

Permalink
FIO-9170 Added a fix for default templates to include custom componen…
Browse files Browse the repository at this point in the history
…ts (#5940)
  • Loading branch information
antonSoftensity authored Dec 16, 2024
1 parent 28be07a commit 7d4e90c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/formio.form.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export function registerModule(mod, defaultFn = null, options = {}) {
case 'templates':
for (const framework of Object.keys(mod.templates)) {
Formio.Templates.extendTemplate(framework, mod.templates[framework]);
Formio.Templates.defaultTemplates = _.defaults(
mod.templates[framework],
Formio.Templates.defaultTemplates
);
}
if (mod.templates[current]) {
Formio.Templates.current = mod.templates[current];
Expand Down

0 comments on commit 7d4e90c

Please sign in to comment.