Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select change problem #16

Open
NerminMujagic opened this issue Feb 13, 2019 · 3 comments
Open

Select change problem #16

NerminMujagic opened this issue Feb 13, 2019 · 3 comments

Comments

@NerminMujagic
Copy link

NerminMujagic commented Feb 13, 2019

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".

@thdoan
Copy link
Owner

thdoan commented Jun 9, 2019

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

thdoan added a commit that referenced this issue Jun 9, 2019
@thdoan
Copy link
Owner

thdoan commented Jun 9, 2019

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

@toraak
Copy link

toraak commented Aug 13, 2019

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants