json-schema-form / angular-schema-form-bootstrap

Bootstrap decorator for Angular Schema Form
51 stars 86 forks source link

Number types do not set 'min' and 'max' atributes #18

Closed Anthropic closed 8 years ago

Anthropic commented 8 years ago

@otherkade wrote: When my field is generated as a type number with a minimum and maximum, the min and max correctly validate input, but the min and max attributes aren't set on the input, so the up/down arrows still let a user go above/below the boundaries.

Moved from the main Angular repo https://github.com/json-schema-form/angular-schema-form/issues/539

Anthropic commented 8 years ago

Added to webpack branch for v1.0 https://github.com/json-schema-form/angular-schema-form/blob/b5977219a14e2de148b2f8b12197a32b3b7977d8/src/services/builder.js#L162