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

Fix compatibility between n:class macro and n:name form macro. #159

Merged
merged 1 commit into from
Jul 22, 2017

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.

None yet

2 participants