pretty-dropdowns icon indicating copy to clipboard operation
pretty-dropdowns copied to clipboard

Select change problem

Open NerminMujagic opened this issue 6 years ago • 3 comments

Hi, the main problem what I have is when the change event is triggered on a <li> item that has the same name as other it wont change the select value: ex:

<select>
    <option value="D1"> Random </option>
  <optgroup label="Country">
    <option value="luxC"> Luxemburg </option>
    <option value="gerC">Germany</option>
  </optgroup>
  <optgroup label="City">
    <option value="luxCi"> Luxemburg </option>
    <option value="berCi">Berlin</option>
  </optgroup>
</select>

The generated <ul> and <li> behave and move the ".select" class to the right <li> but the select value stays "luxCi" even when I click on "luxC".

NerminMujagic avatar Feb 13 '19 15:02 NerminMujagic

Thanks for reporting this. I will look into this when I get a chance.

thdoan avatar Jun 09 '19 04:06 thdoan

@NerminMujagic this issue has been fixed in v4.17.0. Please confirm and close. Thanks for reporting this.

thdoan avatar Jun 09 '19 22:06 thdoan

Hi, i got similar bug when the item have the same value it wont change.

<select id="worldLocation" name="sort" class="pretty" style="visibility: hidden; height: 50px;">                                                                                                                                                                              
<option value="811067862557" data-link="https://wowmomsworld.com/franchise/long-island/">Long Island</option>
<option value="" data-link="https://wowmomsworld.com/franchise/mexico/">Mexico</option>
<option value="" data-link="https://wowmomsworld.com/franchise/paramus/">Paramus</option>
<option value="" data-link="https://wowmomsworld.com/franchise/coral-springs/">Coral Springs</option>
<option value="" data-link="https://wowmomsworld.com/franchise/midland/">Midland</option>
<option value="" data-link="https://wowmomsworld.com/franchise/san-antonio/">San Antonio</option>
<option value="" data-link="https://wowmomsworld.com/franchise/houston/">Houston</option>
<option value="" data-link="https://wowmomsworld.com/franchise/vaughan/">Vaughan</option>
<option value="" data-link="https://wowmomsworld.com/franchise/montreal/">Montreal</option>
<option value="" data-link="https://wowmomsworld.com/franchise/brossard/">Brossard</option>
<option value="" data-link="https://wowmomsworld.com/franchise/laval/">Laval</option>
</select>

toraak avatar Aug 13 '19 15:08 toraak