AngularJS Chosen not working/updating

2019-09-17 07:03发布

问题:

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