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

How to remove aria-labelledby attribute? #389

Open
GitHubHubus opened this issue Aug 2, 2018 · 1 comment
Open

How to remove aria-labelledby attribute? #389

GitHubHubus opened this issue Aug 2, 2018 · 1 comment

Comments

@GitHubHubus
Copy link

Hello.
In dropdownContainer automatically put the attribute aria-labelledby.
screenshot 1

I saw documentation and didn't find how I can remove this attribute from span container.
Is it possible?

@nachitox
Copy link

        if(dropdownLabel.length) {

            // MDN `aria-labelledby` description:  Indicates the IDs of the elements that are the labels for the object.
            self.dropdownContainer.attr("aria-labelledby", dropdownLabel[0].id);

        }

I changed it to:

        if(dropdownLabel.length && dropdownLabel[0].id) {

            // MDN `aria-labelledby` description:  Indicates the IDs of the elements that are the labels for the object.
            self.dropdownContainer.attr("aria-labelledby", dropdownLabel[0].id);

        }

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

2 participants