From cf4089b869724f6e1b39e85be814b88acee795ec Mon Sep 17 00:00:00 2001 From: Anton K Date: Fri, 6 Dec 2024 15:54:01 +0100 Subject: [PATCH] FIO-9170 Added a fix for default templates to include custom components --- src/formio.form.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/formio.form.js b/src/formio.form.js index 479d53a32d..d34da5e4bf 100644 --- a/src/formio.form.js +++ b/src/formio.form.js @@ -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];