Open JayWilk opened 4 months ago
When using a block as a property, the hiding behaviour does not work.
Replication steps:
[ContentType(GUID = "089B7DA2-F857-4FC6-89B1-22766BF4F286", AvailableInEditMode = false)] public class LocalBlockTest : BlockData { [Display(Order = 1)] [ShowPropertyWhenValueEquals(nameof(PropertyToShow), true)] public virtual bool ShowProperty { get; set; } [Display(Order = 2)] public virtual string? PropertyToShow { get; set; } }
Then add it to a page/block like so:
[Display(GroupName = GroupNames.Content, Order = 20)] public virtual LocalBlockTest LocalBlock { get; set; }
Result:
Same for tabs.
When using a block as a property, the hiding behaviour does not work.
Replication steps:
Then add it to a page/block like so:
Result:
Same for tabs.