问题
Two part issue
- Chosen is not being applied on load to the select items
- 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