|
@@ -205,7 +205,7 @@ export namespace ParamDefinition {
|
|
|
getLabel(t: T): string
|
|
|
}
|
|
|
export function ObjectList<T>(element: For<T>, getLabel: (e: T) => string, info?: Info & { defaultValue?: T[], ctor?: () => T }): ObjectList<Normalize<T>> {
|
|
|
- return setInfo<ObjectList<Normalize<T>>>({ type: 'object-list', element: element as any as Params, getLabel, ctor: _defaultObjectListCtor, defaultValue: (info && info.defaultValue) || [] });
|
|
|
+ return setInfo<ObjectList<Normalize<T>>>({ type: 'object-list', element: element as any as Params, getLabel, ctor: _defaultObjectListCtor, defaultValue: (info && info.defaultValue) || [] }, info);
|
|
|
}
|
|
|
function _defaultObjectListCtor(this: ObjectList) { return getDefaultValues(this.element) as any; }
|
|
|
|