I currently have a table-like display created using the bootstrap grid classes. The body rows on this table are filled dynamically with JavaScript. Depending on the application state, the table is either hidden or shown. I have two divs, one with an ID containing a row for the header columns, and another div with a separate ID to hold the body rows structured as follows:
<div id="myDynamicList" style="display:none;">
<div class="row" id="myHeaderRow">
<div class="col-sm-4 tabledHeader">Service Id</div>
<div class="col-sm-4 tabledHeader">Service Type</div>
<div class="col-sm-1 tabledHeader">Synchronised</div>
<div class="col-sm-1 tabledHeader">Singleton</div>
<div class="col-sm-2 tabledHeader"></div>
</div>
<div id="myListOutput"></div>
</div>
In Bootstrap 3.5, everything works fine. However, in version 4, each "col" element appears on a new line rather than inline as intended. Removing the wrapping divs like myListOutput and myDynamicList fixes the layout issue, displaying the columns side by side correctly.
However, I require these wrapping divs to properly append child elements and interact with the DOM, causing the layout problem. How can this be achieved in Bootstrap 4?