twisty / formsy-react-components

Bootstrap components for a formsy-react form.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Input Component fails when type = "hidden"

pizzurro opened this issue · comments

Hidden input elements fail to render in 0.6.5

When this
render: function () {
    return (
      <Formsy.Form className="form-signin" role="form" onSubmit={this.handleSubmit} method="post">
        <h3 className="form-signin-heading">Please sign in</h3>
        <Input type="hidden" name="provider" value="WindowsAuthentication"/>
        <Input className="form-control username" layout="vertical" type="text" name="username" placeholder="Username"/>
        <Input className="form-control password" layout="vertical" type="password" name="password"
               placeholder="Password"/>
        <button className="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
      </Formsy.Form>
    )
  }
Then this
Uncaught TypeError: Cannot read property 'length' of undefined
hashString  @   app.0.0.0.js:24317 (React.hashString)
getId   @   app.0.0.0.js:24336 (Input.renderElement)
renderElement   @   app.0.0.0.js:24177
render  @   app.0.0.0.js:24138