Skip to content

Conversation

@xificurk
Copy link
Contributor

  • bug fix? yes
  • new feature? no
  • BC break? no

Currently n:class and n:name macros do not play well together. The problem is that n:name macro doesn't see n:class as html attribute, so it doesn't reset the class on the returned Html instance of form/label/control. This leads to HTML output with double class="..." attribute.
This PR solves the problem by adding explicit support for n:class into FormMacros.

@xificurk
Copy link
Contributor Author

The build failure doesn't seem to be related.

@dg
Copy link
Member

dg commented Jul 22, 2017

Thanks!

@dg dg merged commit 4d3e819 into nette:master Jul 22, 2017
@xificurk xificurk deleted the form-macros-nclass-support branch July 22, 2017 20:10
dg pushed a commit that referenced this pull request Jul 24, 2017
dg pushed a commit that referenced this pull request Jul 24, 2017
dg pushed a commit that referenced this pull request Aug 25, 2017
xificurk added a commit to nepada/form-renderer that referenced this pull request Aug 29, 2017
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.

2 participants