ModelComponent: fix validators not transferred to attached model

This commit is contained in:
Alice Gaudon 2020-11-15 14:13:35 +01:00
parent 42da8a68bb
commit cecf28502e

View File

@ -21,6 +21,7 @@ export default abstract class ModelComponent<M extends Model> {
for (const property of this._properties) {
if (!property.startsWith('_')) {
model[property] = this[property];
model['_validators'][property] = this._validators[property] as Validator<ModelFieldData> | undefined;
}
}