Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

_ContentMixin.getCurrentContext() returns incorrect context on ContentArea->Create a new Block

$
0
0

I have a custom component on a block that uses the _ContextMixin as described in the following link

https://world.episerver.com/documentation/developer-guides/CMS/user-interface/Context-sensitive-components/

If I create a new block the context describes the block where the property exists as expected.

If I, on the other hand, have a page with a ContentArea and clicks the "Create a new block" link on that content area, the context returned is not the block context but the page context where the ContentArea is located.


Viewing all articles
Browse latest Browse all 9076

Trending Articles