diff --git a/cosmoz-data-nav.js b/cosmoz-data-nav.js index 251ce40..b526a26 100644 --- a/cosmoz-data-nav.js +++ b/cosmoz-data-nav.js @@ -760,7 +760,8 @@ class CosmozDataNav extends translatable(mixinBehaviors([IronResizableBehavior], if (selectedElement == null) { return; } - return selectedElement.children[0]; + // return reference to the rendered template instance or the incomplete template if missing + return selectedElement.children[1] || selectedElement.children[0]; } _getItem(index, items = this.items) {