ulion / jsonform

Build forms from JSON Schema. Easily template-able. Compatible with Twitter Bootstrap out of the box.
http://ulion.github.io/jsonform/playground/
MIT License
49 stars 27 forks source link

Tab Arrays don't load multiple tabs with a value that has multiple members #15

Closed mushishi78 closed 9 years ago

mushishi78 commented 9 years ago

To replicate, go to playground with tabs and add value:

  ,"value": {
    "friends": [
      { "nick": "Jim" },
      { "nick": "John" }
    ]
  }

It works for the normal array view and on the master fork.

ulion commented 9 years ago

Add "key": "friends" to the form definition of the tabarray, seems can fix the problem. Without the "key", jsonform can not guess that friends array value is just for that tabarray in the form definition.

2015-06-29 23:21 GMT+08:00 Max White notifications@github.com:

To replicate, go to playground with tabs http://ulion.github.io/jsonform/playground/?example=fields-tabarray and add value:

, value: { friends: [ { nick: 'Jim' }, { nick: 'John' } ] }

It works for the normal array view and on the master fork.

— Reply to this email directly or view it on GitHub https://github.com/ulion/jsonform/issues/15.

Ulion

mushishi78 commented 9 years ago

Great Thanks!