json-schema-form / angular-schema-form

Generate forms from a JSON schema, with AngularJS!
https://json-schema-form.github.io/angular-schema-form
MIT License
2.47k stars 653 forks source link

Password type input not using custom default template #843

Closed wtm17 closed 7 years ago

wtm17 commented 7 years ago

When using addMapping method on schemaFormDecoratorsProvider to override the default template with a custom template, inputs of type password do not use the custom template. Inputs of type text and email do use the custom template.

Here is a plunker to demonstrate the issue: https://plnkr.co/edit/6cW9LibLnO3NkMazJed7?p=preview

@json-schema-form/angular-schema-form-lead

wtm17 commented 7 years ago

I have a fix for this. The password field gets updated when you add this line to the module config:

decoratorsProvider.addMapping('bootstrapDecorator', 'password', 'default.html');

I've updated the Plunker. I'm not sure if this is actually a bug - it may be functioning as intended.

Anthropic commented 7 years ago

Not sure if this has changed in the alpha releases, it may have, glad you sorted it :)