-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Demo of problem: https://codepen.io/anon/pen/BdayLm
If you shrink your window with that demo, the lg <Col /> elements should spread out to full width at some point...they do not.
The responsiveness is broken because of extra col class being added to <Col /> elements:
<Row>
<Col lg>1</Col>
<Col lg>2</Col>
<Col lg>3</Col>
<Col lg>4</Col>
</Row>
...because the rendered element comes out as:
<div class="row">
<div class="col col-lg">1</div>
<div class="col col-lg">2</div>
<div class="col col-lg">3</div>
<div class="col col-lg">4</div>
</div>
...that will not work, for the breakpoints to work each <Col /> must be rendered like this:
<div class="row">
<div class="col-lg">1</div>
<div class="col-lg">2</div>
<div class="col-lg">3</div>
<div class="col-lg">4</div>
</div>
If you edit the live HTML in the demo and remove the extra col class from the elements, then the responsiveness works again.
...perhaps I am missing something entirely but I don't see this working on any examples out of the box...and I will have to fork this project to fix this if I want to use it right now - far as I can see.
I can submit a PR to remove the default col class if wanted?