@stemy/ngx-dynamic-form 13.3.3 → 13.3.5
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.
- package/esm2020/ngx-dynamic-form/utils/customizer.mjs +3 -3
- package/fesm2015/stemy-ngx-dynamic-form.mjs +2 -2
- package/fesm2015/stemy-ngx-dynamic-form.mjs.map +1 -1
- package/fesm2020/stemy-ngx-dynamic-form.mjs +2 -2
- package/fesm2020/stemy-ngx-dynamic-form.mjs.map +1 -1
- package/ngx-dynamic-form/utils/customizer.d.ts +3 -2
- package/package.json +1 -1
|
@@ -293,7 +293,7 @@ function getFormComponent(...types) {
|
|
|
293
293
|
return (model, injector) => {
|
|
294
294
|
const customizers = factory(injector);
|
|
295
295
|
for (const customizer of customizers) {
|
|
296
|
-
const component = customizer.getFormComponent(model);
|
|
296
|
+
const component = customizer.acceptModel(model) ? customizer.getFormComponent(model) : null;
|
|
297
297
|
if (component) {
|
|
298
298
|
return component;
|
|
299
299
|
}
|
|
@@ -306,7 +306,7 @@ function customizeFormModel(...types) {
|
|
|
306
306
|
return async (property, schema, model, config, injector) => {
|
|
307
307
|
const customizers = factory(injector);
|
|
308
308
|
for (const customizer of customizers) {
|
|
309
|
-
const accept =
|
|
309
|
+
const accept = customizer.acceptModel(model);
|
|
310
310
|
if (accept) {
|
|
311
311
|
return customizer.customizeModel(model, config, property, schema);
|
|
312
312
|
}
|