Property Edit container with custom CSS class renders class attribute twice

Fixed in

EPiServer.CMS.Core 11.5.3

Created

Apr 11, 2018

Updated

Apr 20, 2018

Area

CMS Core

State

Closed, Fixed and tested


Description

If a property is rendered using the PropertyFor extension with RenderSettings that include a custom CSS class, it renders the class attribute twice in Edit mode.

Example

@Html.PropertyFor(m => m.Heading, new { CssClass = "customCssClass" })

Result

<div class="customCssClass" data-epi-property-name="Heading" ... class="customCssClass">...</div>