diff --git a/src/view/view.ts b/src/view/view.ts index fd149aa8..2d9604aa 100644 --- a/src/view/view.ts +++ b/src/view/view.ts @@ -295,6 +295,8 @@ export class ViewService { if (relativeMatch.exec(uiViewContextAnchor)) { let anchor = uiViewContextAnchor.split(".").reduce(((anchor, x) => anchor.parent), context); uiViewContextAnchor = anchor.name; + } else if (uiViewContextAnchor === '.') { + uiViewContextAnchor = context.name; } return {uiViewName, uiViewContextAnchor};