You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If both option and optgroup are direct children of select (as shown in the example below), option is ignored when appending anchor .
As a result, direct options don't show up and clicking on a button makes a wrong choice because data-select-index has a wrong index .
As for the above example, adding addOptGroup(select); right above optGroups.each solves the problem, but it doesn't work in the case option is not always defined above optgroup .
The text was updated successfully, but these errors were encountered:
If both
option
andoptgroup
are direct children ofselect
(as shown in the example below),option
is ignored when appendinganchor
.As a result, direct options don't show up and clicking on a button makes a wrong choice because
data-select-index
has a wrong index .The cause of the problem is that the following code ignores direct options if
select
hasoptgroup
:jQuery.select2Buttons.js
As for the above example, adding
addOptGroup(select);
right aboveoptGroups.each
solves the problem, but it doesn't work in the caseoption
is not always defined aboveoptgroup
.The text was updated successfully, but these errors were encountered: