gcanti / tcomb-form

Forms library for react
https://gcanti.github.io/tcomb-form
MIT License
1.16k stars 136 forks source link

t.list is broken in 0.7.7 #265

Closed blairbodnar closed 8 years ago

blairbodnar commented 8 years ago

I upgraded from 0.7.6 to 0.7.7 and t.list seems to have a problem. In the example below, the text inputs for the tags do not accept input from the user.

const Person = t.struct({
  name: t.String,
  tags: t.list(t.String) // broken?
});

Also, for the given Person value:

const person = {
  name: 'John',
  tags: ['employee'] // will render an empty input
}

this will render one tag input with an empty value.

gcanti commented 8 years ago

Should be fixed in v0.7.8, thanks a lot @blairbodnar, sorry for the inconvenience

blairbodnar commented 8 years ago

Awesome! Wow that's fast :) Thanks!