AngularJS Chosen not working/updating

爷,独闯天下 提交于 2019-12-25 01:54:19

问题


Two part issue

  1. Chosen is not being applied on load to the select items
  2. When manually triggering chosen, the filter in ng-options does not apply

The select:

<select chosen allow-single-deselect="true" no-results-text="Oops, nothing found!" data-placeholder="SELECT VENUE" id="filter_venue" name="venue" ng-model="venueSelect" ng-options="venue[1] for venue in venues | filter:citySelect">
    <option value="">All Venues</option>
</select>

citySelect is another drop-down which works fine without chosen

The drop-down works as needed without chosen

来源:https://stackoverflow.com/questions/25295269/angularjs-chosen-not-working-updating

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!