newforms-bootstrap
newforms-bootstrap copied to clipboard
Ability to use rows/columns without a Container
I like to wrap my entire page in a container, and would rather not have the form also wrapped in a container class.
Is this possible? As far as I can see, the documentation does not cover this, and attempting to replace <Container> with <div> yields Uncaught TypeError: Cannot read property 'boundField' of undefined
👍
This works
<forms.RenderForm form={ProfileForm} ref="form">
<Container>
<Row md='12'>
<Field name="username" md="12"/>
</Row>
</Container>
</forms.RenderForm>
But this doesnt:
<forms.RenderForm form={ProfileForm} ref="form">
<Container>
<Row md='12'>
<Col md='6'>
<Field name="username" md="12"/>
</Col>
</Row>
</Container>
</forms.RenderForm>
It yields Uncaught TypeError: Cannot read property 'boundField' of undefined