We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 137a83e commit bc21085Copy full SHA for bc21085
1 file changed
src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-type-bind-relation.service.ts
@@ -183,7 +183,8 @@ export class DsDynamicTypeBindRelationService {
183
const initValue = (hasNoValue(relatedModel.value) || typeof relatedModel.value === 'string') ? relatedModel.value :
184
(Array.isArray(relatedModel.value) ? relatedModel.value : relatedModel.value.value);
185
186
- const valueChanges = relatedModel.valueChanges.pipe(
+ const updateSubject = (relatedModel.type === 'CHECKBOX_GROUP' ? relatedModel.valueUpdates : relatedModel.valueChanges);
187
+ const valueChanges = updateSubject.pipe(
188
startWith(initValue)
189
);
190
0 commit comments