Skip to content

Commit

Permalink
backport connected fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
haringsrob committed Jan 13, 2023
1 parent 5bf8c23 commit f3ca1d3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions frontend/js/components/ConnectorField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,14 @@
if (child.componentInstance.$refs.field[0]) {
child.componentInstance.$refs.field[0].destroyValue()
}
}
// Special fields such as browsers.
else if (
child.componentInstance !== undefined
} else if (
child.componentInstance !== undefined &&
child.componentInstance.$slots !== undefined &&
child.componentInstance.$slots.default !== undefined
) {
// Special fields such as browsers.
child.componentInstance.$slots.default.forEach((subChild) => {
if (subChild.componentInstance.destroyValue) {
if (subChild.componentInstance && subChild.componentInstance.destroyValue) {
subChild.componentInstance.destroyValue()
}
})
Expand Down

0 comments on commit f3ca1d3

Please sign in to comment.