EvanOxfeld / angular-selectize.js

Angular Selectize directive for a hybrid textbox + <select> box. Supports ngOptions and two-way bindings.
MIT License
34 stars 16 forks source link

Select not filled when it is hidden #33

Open mdmoura opened 9 years ago

mdmoura commented 9 years ago

Hello,

I have a select which is inside a hidden div:

<div class="panel">
  <form id="form" method="post" ng-submit="submit">
    <select ng-controller="CountryController" ng-model="model.country" ng-options="country.Id as country.Name for country in model.countries">
      <option value="">Country</option>
    </select>      
  </form>
</div>

div.panel {
  display: none;      
  overflow: hidden;
  position: relative;
}

Because it is hidden the select is not filled ... If I do not use selectize then everything works fine.

Any idea how to solve this?

Thank You, Miguel