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

Fix <li> tags inside <option> being treated as options #1674

Closed

Conversation

gronostajo
Copy link

The findLis() function used a too broad selector which included <li> tags inside <option>. For example for this <select>:

<select>
  <option><ul><li>demo</li></option>
</select>

findLis() would find two <li>s in generated code: one for <option> and one inside it.

One side effect of this bug is that check mark is shown properly only for the first option. For following options the selected class is assigned to incorrect <li>.

The findLis() function used a too broad selector which included <li>
tags inside <option>. For example for this <select>:

    <select>
      <option><ul><li>demo</li></option>
    </select>

findLis() would find two <li>s in generated code: one for <option> and one
inside it.

One side effect of this bug is that check mark is shown properly only for
the first option. For following options the `selected` class is assigned
to incorrect <li>s.
@caseyjhol caseyjhol added this to the v1.13.0 milestone Jul 20, 2017
caseyjhol added a commit that referenced this pull request Jul 24, 2017
@caseyjhol
Copy link
Member

Available in v1.13.0-alpha.

@caseyjhol caseyjhol closed this Jul 29, 2017
fracz pushed a commit to iisg/redo that referenced this pull request Mar 24, 2019
Checkmarks don't appear properly in multi-select resource kind pickers
because snapappointments/bootstrap-select#1674

Change-Id: I6675f1d95ccb4ae0ca5c8f8aa573566d59753487
fracz pushed a commit to iisg/redo that referenced this pull request Nov 10, 2019
Checkmarks don't appear properly in multi-select resource kind pickers
because snapappointments/bootstrap-select#1674

Change-Id: I6675f1d95ccb4ae0ca5c8f8aa573566d59753487
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

Successfully merging this pull request may close these issues.

None yet

2 participants