-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Switch button firing change event 3 times in BS 4.5.0 #30924
Comments
/CC @Lausselloic since it's your patch :) |
@Lausselloic is this the same issue as #30849? |
it's not the same issue but yes event is propagate to childrens inside the label. I could give a try to handle that |
@Lausselloic please do so, thanks! |
#31000 targets |
@Lausselloic can you confirm please that this issue does not affect v5? I believe we removed most of the Button JS so this doesn't seem to apply to v5. |
Sorry for the late reply, that doesn't affect v5 at time, there's a need to backport @patrickhlauke fixes (#28952 and #28834) those accessibility fixes are not present's in v5 I will give a try to port it. [UPDATE] Looks like V5 version is usable with keyboard successfuly https://v5.getbootstrap.com/docs/5.0/forms/checks-radios/#toggle-buttons and using |
Yup, the v5 implementation is just superb 😛 |
Fixed by #31000, thanks @Lausselloic! |
I have tried this issue under version 4.5.0 and the method seems working but the change event is fired 3 times on each button click
https://codepen.io/DK568/pen/MWYxWMO
try to click the button
Originally posted by @dkwebtec in #30077 (comment)
The text was updated successfully, but these errors were encountered: