-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
change event not working with BS4 radio button groups? #17599
Comments
You're referring to http://v4-alpha.getbootstrap.com/components/buttons/#checkbox-and-radio-buttons , correct? |
@cvrebert Thanks, yes the BS v4 radio button groups. A CSS-only solution would be awesome, though I'd imagine many people would still want to use the jQuery Is it possible the BS v4 button JS widgets are blocking events ( |
Quite probably. |
Perfect, thanks again! I don't know the etiquette so feel free to close this issue if that's what you typically do. |
Toggle state for checkboxes as buttons is still WIP for bootstrap v4 (twbs/bootstrap#17599). Will stack and go for multiple columns next.
Hi there, I've just got stucked on this issue too. Problem seems to be in code part where "change" event being triggered in Button class: if (triggerChangeEvent) {
input.checked = !$(this._element).hasClass(ClassName.ACTIVE);
$(this._element).trigger('change');
}
|
I believe this is a dupe of #16673? Problem sounds super similar with how the events are being handled for the input and label combo. See #16673 (comment). |
Hey there! |
Bootstrap v4 issue:
For the button group radios I can't get the input:radio
change
event to fire, so developers looking to do things like$('input').on('change', function ( //do something ) });
could get frustrated. This might not be BS4's fault per se, but just something that works in BS3 and may confuse people.The text was updated successfully, but these errors were encountered: