You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using type='select' and enclosing option tags seems to work just as you'd expect - react-bootstrap-validation uses the es6 spread operator so most basic tags work out of the box - datepicker's seem to also work, given proper format.
@Cabeza, I mean to say that you would give the attributes as you would expect the browser to render an input. Provide a type and any other properties. type='date' or akin to @murali4ever's provided example. Any attributes in an element created with react-bootstrap-validation reach the DOM element it produces. That's because the spread operator hands over anything it doesn't explicitly handle by key (required, label, errorHelp etc etc).. <ValidatedInput name='userBirthday' ref='userBirthday' validate='required' type='date' errorHelp='Select your birthday' label='Birthday' />
Something along those lines should work. react-bootstrap-validation doesn't provide explicit handling because it doesn't need to.
Activity
FutureKode commentedon Jan 15, 2016
+1
rpdobson123 commentedon Jan 25, 2016
It seems you actually can use selects.
using type='select' and enclosing option tags seems to work just as you'd expect - react-bootstrap-validation uses the es6 spread operator so most basic tags work out of the box - datepicker's seem to also work, given proper format.
MasterMarandu commentedon Mar 7, 2016
@rpdobson123
what do you mean by proper format? can you give an example please?
murali4ever commentedon Mar 30, 2016
This example worked for me :)

rpdobson123 commentedon Apr 22, 2016
@Cabeza, I mean to say that you would give the attributes as you would expect the browser to render an input. Provide a type and any other properties.
type='date'or akin to @murali4ever's provided example. Any attributes in an element created with react-bootstrap-validation reach the DOM element it produces. That's because the spread operator hands over anything it doesn't explicitly handle by key (required, label, errorHelp etc etc)..<ValidatedInput name='userBirthday' ref='userBirthday' validate='required' type='date' errorHelp='Select your birthday' label='Birthday' />Something along those lines should work. react-bootstrap-validation doesn't provide explicit handling because it doesn't need to.