Meteor-Community-Packages / meteor-simple-schema

Meteor integration package for simpl-schema

Home Page:https://github.com/Meteor-Community-Packages/meteor-simple-schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the optional: true afFieldInput have the required attribute with it

salmanhasni opened this issue · comments

example

export const RecruitablePlayerSchema = new SimpleSchema({
  ratings: {
    type: [Object],
    blackbox: true,
    optional: true
  },

 {{> afFieldInput type="text" name="ratings.0.value" id="rating-freeform" }}

then it is rendered as
<input type="text" name="ratings.0.value" id="rating-freeform" required="" data-schema-key="ratings.0.value" class="form-control">

solved my query with required=false