Skip to content

Commit

Permalink
TASK: Tweak Fusion code to prevent empty class attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaidelich committed Sep 21, 2017
1 parent 680e867 commit 9e8df91
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Resources/Private/Fusion/Core/AbstractSection.fusion
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
prototype(Neos.Form.FusionRenderer:AbstractSection) < prototype(Neos.Fusion:Tag) {
@context.containerElement = ${this.containerElement}
tagName = 'fieldset'
attributes.class = Neos.Fusion:Array {
defaultClass = ${containerElement.properties.elementClassAttribute ? containerElement.properties.elementClassAttribute : null}
attributes {
class = ${containerElement.properties.elementClassAttribute}
[email protected] = ${containerElement.properties.elementClassAttribute ? true : false}
}
content = Neos.Fusion:Array {
legend = Neos.Fusion:Tag {
Expand All @@ -22,4 +23,4 @@ prototype(Neos.Form.FusionRenderer:AbstractSection) < prototype(Neos.Fusion:Tag)
formRuntime = ${formRuntime}
formElement = ${containerElement}
}
}
}

0 comments on commit 9e8df91

Please sign in to comment.