Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed duplicate textarea class attribute #98

Merged
merged 1 commit into from
Oct 14, 2016
Merged

Fixed duplicate textarea class attribute #98

merged 1 commit into from
Oct 14, 2016

Conversation

lcrea
Copy link
Contributor

@lcrea lcrea commented Oct 13, 2016

When a user sets the classes attribute for a textarea field, the Twig template duplicates the class attribute inside the textarea tag, resulting in a not valid HTML like this:

Markdown source

- name: message
  classes: form-control
  type: textarea

Final HTML

<div class="form-textarea-wrapper">
    <textarea class="form-control" name="data[message]" class="form-control"></textarea>
</div>

@flaviocopes flaviocopes merged commit a777d0b into getgrav:develop Oct 14, 2016
@flaviocopes
Copy link
Contributor

👍

@lcrea lcrea deleted the textarea-class branch October 14, 2016 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants