miguelcobain / ember-cli-selectize

An Ember and Selectize integration, packaged as an Ember-cli addon.
MIT License
151 stars 80 forks source link

2 selectors in the same template and options visible for both of them at the same time #192

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi,

We noticed an issue when we have two instances of ember-selectize placed in the same template.

Then the sequence:

  1. Click on 1st select
  2. Click Url bar in the browser (Chome)
  3. Click on 2nd select

leads to the situation that two selector`s options are expandend. It should be easily reproducible.

{{ember-selectize
  content=model
  optionValuePath="content.id"
  optionLabelPath="content.title"
  placeholder="Select an item"
}}

{{ember-selectize
  content=model
  optionValuePath="content.id"
  optionLabelPath="content.title"
  placeholder="Select an item"
})

Ember 2.13.0 Ember Data 2.12.1 jQuery 3.2.1

Is that something that could be solved soon or we rather should switch do ember-power-select as docs suggests?

Thanks.

miguelcobain commented 7 years ago

You should definitely use power select for a ton of benefits and it seems to be what most people are using. This bug should be addressed, though.