angular-schema-form-material icon indicating copy to clipboard operation
angular-schema-form-material copied to clipboard

Checkbox not rendering correctly on load

Open tjones0808 opened this issue 9 years ago • 3 comments

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 avatar Aug 31 '16 14:08 tjones0808

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.

tjones0808 avatar Aug 31 '16 16:08 tjones0808

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

Anthropic avatar Sep 10 '16 13:09 Anthropic

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

jerome-quere avatar Dec 01 '16 10:12 jerome-quere