Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

label for support for id's with brackets, eg id="name[first]" #422

Closed
phazei opened this Issue · 2 comments

3 participants

@phazei

Near line 520 needs to be modified like so:

        target=$(e.target);
        attr = target.attr("for");
        if ("LABEL" === e.target.tagName && attr && attr.length > 0) {
            attr = attr.replace(/([\[\]])/g,'\\$1');
            target = $("#"+attr);
            if (target.data("select2") !== undefined) { target.select2('open'); e.preventDefault();}
        }

I also added
$("#"+attr).select2('open');
since target.focus() didn't seem to open the select.

@ivaynberg ivaynberg closed this in f7e78f6
@pate

Does this issue also affect name attributes?

@phazei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.