Calls $refs dynamically
This commit is contained in:
parent
3361e6818a
commit
cbdde53a98
1 changed files with 2 additions and 7 deletions
|
|
@ -62,15 +62,10 @@ export default {
|
|||
vm.$refs.funnelFooter.initializeComponent(
|
||||
resultMap.cmsContent.FunnelFooterWidget
|
||||
);
|
||||
|
||||
// Part Question dynamic component
|
||||
Object.keys(vm.$refs).filter(r => r.includes(vm.refPrefix) && vm.$refs[r][0] !== undefined).forEach(c => vm.$refs[c][0].initializeComponent());
|
||||
|
||||
// for (const key of Object.keys(vm.$refs)) {
|
||||
// if (key.includes(vm.refPrefix) && vm.$refs[key][0] !== undefined) {
|
||||
// const partQuestionComp = vm.$refs[key][0];
|
||||
|
||||
// partQuestionComp.initializeComponent()
|
||||
// }
|
||||
// }
|
||||
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue