Skip to content

If an <option> element's value contains the " character, an incorrect value is stored in data-val #27

@gavacho

Description

@gavacho

Pretty sure this is the line of code before-which special cases need to be handled

                // Uses Array.join instead of string concatenation for speed
                currentItem.push(optgroupElement + '<li id="' + index + '" data-val="' + this.value + '" data-disabled="' + dataDisabled + '" class="' + optgroupClass + '"><a><i class="' + iconClass + '"></i>' + $(this).text() + '</a></li>');

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions