Working with html5, JQuery Mobile and KnockoutJS. I've created a foreach template to display a grid-like GUI from an observable array.
The issue arises when new items are added to the array - the styles are not applied correctly to these new items. They often appear unstyled or inconsistently styled. Once the styling fails for a particular item, it remains broken until the app is restarted.
Has anyone encountered this problem before? Any suggestions on how to fix it?
Code Snippet:
<div id="timeEntryList" data-bind="foreach: timeEntries">
<div data-role="header" data-theme="c">
<h1>some header</h1>
Curiously, the styling issue seems to occur randomly.