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 654 forks source link

Schema form trims the input values #509

Open ravi-patwal opened 9 years ago

ravi-patwal commented 9 years ago

This might be due to Angular1.2+ as angular by default trims the input value removing surrounding spaces. But in angular input fields you can give set trim to false, so that angular does not trims the input fields. Is there a way so that angular schema form also.

I tried putting the value as : sf-options="{ setSchemaDefaults: {ngTrim :'false'}}" and sf-options="{ formDefaults: {ngTrim :'false'}}"

but they are not working.

davidlgj commented 9 years ago

Sorry, there is currently no support for setting that option.