gcanti / tcomb-form

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

'help' attribute for t.Dat gives bootstrap error #164

Closed jonaswindey closed 9 years ago

jonaswindey commented 9 years ago

When I set a help option to a date field, I get a bootstrap error:

Uncaught TypeError: Cannot read property 'id' of undefined.

function getHelp(_ref2) {
  var help = _ref2.help;
  var attrs = _ref2.attrs;

  if (!help) {
    return;
  }
  return _uvdomBootstrap2['default'].getHelpBlock({
    help: help,
    id: attrs.id + '-tip'
  });
}

For numbers and strings, there is no problem. Using v0.6.1 and react-bootstrap 0.23.5

gcanti commented 9 years ago

Thanks @jonaswindey, I'll fix that asap

gcanti commented 9 years ago

Just published a fix (v0.6.3)

jonaswindey commented 9 years ago

Thanks. works perfectly.