mercredi 23 août 2017

Cant clear the selected option from ember-power-select

I am using the ember-power-select library link here --> ember-power-select

When I select a value from the power-select and then re-draw the div:


  <div class="col-md-4">
    
  </div>


..controller

vm.set('condition', false);

 Ember.run.later((function () {
      vm.set('condition', true);
    }), 100);

the selected value stays the same.

The behavior that I expect is that the selected option inside power-select will be deselected.

How do I achieve that?




Aucun commentaire:

Enregistrer un commentaire