Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #56 from nodes-vapor/develop
Browse files Browse the repository at this point in the history
fixed bug in textareagroup
  • Loading branch information
Casperhr authored Mar 26, 2017
2 parents eac0a12 + 5979754 commit d463aba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/AdminPanel/Support/LeafTags/FormTextAreaGroup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class FormTextAreaGroup: BasicTag {

template.append("<label class='control-label' for='\(inputName)'>\(label)</label>")

template.append("<textarea class='form-control' id='\(inputName)' name='\(inputName)' value='\(inputValue)'")
template.append("<textarea class='form-control' id='\(inputName)' name='\(inputName)'")

// Add custom attributes
if arguments.count > 3 {
Expand All @@ -88,6 +88,7 @@ public class FormTextAreaGroup: BasicTag {
}

template.append("</>")
template.append(inputValue)
template.append("</textarea>")

// If Fieldset has errors then loop through them and add help-blocks
Expand Down

0 comments on commit d463aba

Please sign in to comment.