Skip to content

Edit Blocks in Areas opens both Blocks #1

@nielslyngsoe

Description

@nielslyngsoe

Hi @rickbutterfield, first I want to highlight fantastic work!

I want to let you know that I experience an issue, which should be relatively easy to fix.

When I click a Block that is placed within a Block Area, when it opens both the clicked Block and the parent Blocks.
This is caused by the click event propagating, I think the immediate fix would be to add a ng-click="$event.stopPropagation()" on your Area slots.

As well it would be nice to support the Single Area Rendering:
@await Html.GetBlockGridItemAreaHtmlAsync(Model, "myAreaAlias")

It was introduced relatively late and I'm not sure if we have it documented, sorry for that.

It is used for the inspiration block Partial View in the example website project:
https://github.com/umbraco/Umbraco.BlockGrid.Example.Website

Again thanks for the well-made package, leading the way for how this is done!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions