Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VocabField value cannot be populated with data via subscribe #803

Open
andrewbrazzatti opened this issue Feb 10, 2021 · 0 comments
Open

Comments

@andrewbrazzatti
Copy link
Contributor

If you add a subscribe block to a VocabField component, it doesn't update its value.
Example configuration

          class: 'VocabField',
          definition: {
            name: 'project_title',
            label: '@dmpt-project-title',
            help: '@dmpt-project-title-help',
            type: 'text',
            required: true,
            disableEditAfterSelect: false,
           vocabId: 'Projects',
           sourceType: 'mint',
           fieldNames: ['dc_title','dc_description','Identifier',], 
            searchFields: 'dc_title,Identifier', 
            titleFieldArr: ['dc_title'],
            stringLabelToField: 'dc_title',
            publish: {
              onValueUpdate: {
                modelEventSource: 'valueChanges'
              }
            }
          }
        },

Changing the component to a RepeatableVocab allows the value to change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant