canjs / can-stache

Live binding handlebars templates
https://canjs.com/doc/can-stache.html
MIT License
10 stars 13 forks source link

isResolved doesn't remove the whole select before the for removes options. #729

Open justinbmeyer opened 3 years ago

justinbmeyer commented 3 years ago
{{#if this.organizationsPromise.isResolved}}
    <select value:from="this.originOrganizationId" on:change="this.change()">
        <option value="">All</option>
        {{# for(shipment of this.organizationsPromise.value.origins) }}
            <option value="{{shipment.id}}">{{shipment.name}}</option>
        {{/for}}
    </select>
{{/if}}