newforms-bootstrap icon indicating copy to clipboard operation
newforms-bootstrap copied to clipboard

Ability to use rows/columns without a Container

Open nickw444 opened this issue 9 years ago • 1 comments

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

nickw444 avatar Apr 04 '16 00:04 nickw444

👍

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

phthhieu avatar May 16 '16 15:05 phthhieu