ModelComponent: fix validators not transferred to attached model
This commit is contained in:
parent
42da8a68bb
commit
cecf28502e
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user