-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(button-toggle): able to focus disabled button via click #15521
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
Conversation
So, funny story, turns out we need to remove the But button-toggle in particular, I'd like to resolve this by eventually changing to |
The reason why we started setting a tabindex was to support cases like |
I think we'll have to use a different approach for that. Probably something like having |
I don't think we can do that, because in a lot of cases we attach the focus trap directly to a DOM node which means that can't use a |
What if we just straight up monkey-patch the |
That technically would work, but it feels a little hacky. Also we have a check on the focus trap that logs a warning if the |
Let's discuss this in the team weekly and decide on a final course of action |
Along the same lines as angular#15499. Fixes users being able to focus a disabled button toggle by clicking on it. The issue comes from us preserving the -1 tabindex, even if the button is disabled.
4fda4de
to
ff08948
Compare
Closing since this is no longer relevant after 39e4e24. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Along the same lines as #15499. Fixes users being able to focus a disabled button toggle by clicking on it. The issue comes from us preserving the -1 tabindex, even if the button is disabled.