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

Checkbox not rendering correctly on load #26

Open
tjones0808 opened this issue Aug 31, 2016 · 3 comments
Open

Checkbox not rendering correctly on load #26

tjones0808 opened this issue Aug 31, 2016 · 3 comments

Comments

@tjones0808
Copy link

I am saving off my form and repopulating at a later time. Everything renders fine except for the checkbox.html. Whenever I load up using a previous model, schema form material doesnt seem to add the md-checked class and thus my checkboxes never get the checkmark. My model looks good, when I inspect the html, the tag shows aria-checked = true but not checkbox and no md-checked class.

Anybody else experience this?

@tjones0808
Copy link
Author

If i remove this
class=\"{{::form.fieldHtmlClass}}\"
from the decorator we're fixed. somehow schemaform is overriding the class options and setting them null on render.

@Anthropic
Copy link
Member

@tjones0808 could you do me a favour and try changing it to ng-class and see if it works then?

@jerome-quere
Copy link

jerome-quere commented Dec 1, 2016

I had the same problem removing class=\"{{::form.fieldHtmlClass}}\" did solve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants