Skip to content

v3 - Conditional properties inside block grid are not scoped to that element #55

Description

@glombek

The parent logic for finding the element within a block list also scopes it to that element type.

                    prop = "[data-element='property-" + parentPropertyAlias + els[i].trim() + "']";

However, although block grids do not have their data-element attribute prefixed like in block grid (so the logic still works) any items outside of that block with the same alias will get shown/hidden by CD.

For example, create a document type with a block grid and a property with the alias title. Create an element inside the block grid with a property title and a CD property that shows/hides title. Hiding the title inside the block grid element will also hide the property on the parent document.

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