json-schema-form / angular-schema-form-material

Angular Material decorator for Angular Schema Form
MIT License
52 stars 45 forks source link

Inputs doesn't show model values until click in input #37

Open hugoalexmartins opened 6 years ago

hugoalexmartins commented 6 years ago

The form doesn't show values of model until click input.

After some investigation I saw that the element md-input-container doesn't have the css class md-input-has-value when the field has value from model.

Also, some of the options like fieldAddonLeft are not available in the templates of the inputs. The decorator needs to be updated with the new options.

Here is my plunker to demonstrate what I am saying: https://plnkr.co/edit/835TaC61a6O88r7TDuOM?p=preview

Scott added a name to the form, swapped to bootstrap, and moved the titleMaps to the UI form schema from the JSON schema to indicate that it does look like material needs to be updated. https://plnkr.co/edit/2C1HOB3o9Do8jUVo3Hau?p=preview

Anthropic commented 6 years ago

Hey @hugoalexmartins is this the same as #25 if so can you try the suggested solution in that?