-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
Active state of disabled button is triggering when <i> or <b> inside a button is clicked. #23353
Comments
I don't see any JavaScript issue here @patrickhlauke 🤔 for me it's a CSS issue, correct me if I missed something |
oops correct, got confused thinking this was some dynamically added class, when in fact it's that the :active class is, well, still active even when the disabled class is there |
@patrickhlauke @Johann-S I would like to fix this. Can I start working on this? |
Sure @prateekgoel go ahead 👍 |
Thanks @Johann-S . I will submit the PR soon. |
@Johann-S @patrickhlauke /CC @mdo |
sounds like the right approach...in essence, making sure |
Yes sure @patrickhlauke |
We've been over this a few times in the last couple years I realized, but should we just |
the danger here is that a "real" disabled control, at least to my knowledge (no time to check, but makes sense conceptually) still "swallows" any clicks. if we just used |
@mdo @patrickhlauke So shall we use both? |
sorry, late reply, but I'd say let's stay away from the |
@patrickhlauke So i guess the PR submitted should work. |
@prateekgoel yup, was looking at the PR there and I think it's good (but see question) |
@patrickhlauke Yes I saw the question. I am not sure if any disabled element receives the |
sorry was having trouble with local build tools so couldn't test this. back in action and will see if i can take this PR for a test drive later tonight |
<i>123</i>, <b>123</b>
tags inside of<button type="button" class="btn btn-lg btn-outline-dark" disabled></button>
tag causes triggering active state of button when button is clicked.(
<a>123</a>
and maybe other tags causes this behavior too).In Firefox 54.0.1 (32-bit), Microsoft Edge 38.14393.1066.0 and IE 11.0.9600.18762 all disabled buttons is triggering active state regardless of
<i>
or<b>
tags.The text was updated successfully, but these errors were encountered: