Closed mandragorn closed 8 years ago
Workaround: Removing whitespace around the options seems to help:
Original:
<select ...>
<option value="{{defaultOptionValue}}">
{{i18n "dropdown.default"}}
</option>
{{#each serviceTypes}}
<option value="{{id}}">
{{attributes.userFriendlyName}}
</option>
{{/each}}
</select>
New:
<select ...>
<option value="{{defaultOptionValue}}">
{{~i18n "dropdown.default"~}}
</option>
{{~#each serviceTypes~}}
<option value="{{id}}">
{{~attributes.userFriendlyName~}}
</option>
{{~/each~}}
</select>
For some reason it matches up whitespace text nodes as the current node with option nodes as the new node during hotswap causing it to generate mis-matched option list:
First render is ok:
Template generated for 2nd render is ok:
But after template renderer merges, they are not ok: