1156
// set node value after validation
1157
switch fieldType {
1158
>
case fieldTypeComponent:
tree.go
1159
>
if err = assertStructPointer(reflect.TypeOf(fieldValue)); err != nil {
1160
return
1161
}
1162
1163
>
childNode.setValueState(valueStateNeedSyncStructure)
tree.go
1164
>
1165
>
// Set detached flag from field option or component type registration.
1166
>
componentAttr := childNode.serializedNode.GetMetadata().GetComponentAttributes()
1167
>
componentAttr.Detached = internal.detached
1168
>
if !componentAttr.Detached {
1169
>
if rc, ok := n.registry.componentFor(fieldValue); ok {
1170
>
componentAttr.Detached = rc.IsDetached()
1171
>
}
1172
}
1173
case fieldTypeData: