ng-repeat中的ui-select被破坏了

时间:2017-03-02 16:22:37

标签: angularjs

我有以下代码,在每个循环中只有第一个多选正在工作,其余的已经显示但是它们被破坏了。 它们已经显示但似乎它们没有正确绑定,当我选择一个选项时没有显示为选中它只是消失了。

<div class="form-group" ng-repeat="mdf in wrap.item | orderItemAttributes">
  <label>{{ mdf.modifier.display }}</label>
    <ui-select multiple ng-model="somemodel[mdf.id]" theme="bootstrap" close-on-select="false" title="mdf.modifier.display" ng-if="mdf.modifier.max !== 1">
       <ui-select-match placeholder="Pick many">{{ $item.name }}</ui-select-match>
         <ui-select-choices repeat="option in mdf.options track by option.name">
            <div>{{ option.name | highlight:for_user }}
            <span ng-if="!mdf.modifier.free">, +{{ option.price }}</span></div>
         </ui-select-choices>
     </ui-select>
</div>

0 个答案:

没有答案
相关问题