Skip to content

Checkbox not rendering correctly on load #26

@tjones0808

Description

@tjones0808

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?

Activity

tjones0808

tjones0808 commented on Aug 31, 2016

@tjones0808
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

Anthropic commented on Sep 10, 2016

@Anthropic
Member

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

jerome-quere

jerome-quere commented on Dec 1, 2016

@jerome-quere

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jerome-quere@Anthropic@tjones0808

        Issue actions

          Checkbox not rendering correctly on load · Issue #26 · json-schema-form/angular-schema-form-material