Skip to content

Commit

Permalink
🐛 Fix renderDefaultTagifNoLink for content of tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto committed Oct 12, 2017
1 parent 5f3da8a commit feab480
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Resources/Private/Fusion/Link/Content.fusion
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
prototype(Carbon.Link:Content) < prototype(Neos.Fusion:Value) {
link = ${link ? link : false}
@context.link = ${this.link}
@if.isValid = Carbon.Link:Valid
isValid = Carbon.Link:Valid
@if.isValid = ${this.isValid || renderDefaultTagIfNoLink ? true : false}

value = Neos.Fusion:Case {
@context.linkType = Carbon.Link:Type
Expand Down
1 change: 1 addition & 0 deletions Resources/Private/Fusion/Link/Link.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ prototype(Carbon.Link:Link) < prototype(Neos.Fusion:Tag) {
backendLink = ${this.backendLink}
additionalClass = ${this.additionalClass}
defaultTagName = ${this.defaultTagName}
renderDefaultTagIfNoLink = ${this.renderDefaultTagIfNoLink}
}
valid = Carbon.Link:Valid

Expand Down

0 comments on commit feab480

Please sign in to comment.