-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fix(buttons): btnRadio does not work with reactive forms in versions >1.7.1 #2581
Comments
Interesting, cuz works on demo page |
The demo kind of confuses me .. the "reactive form radio button demo" does not use radio buttons; it's more kind of a checkbox button demo (it indeed uses btnCheckbox and not btnRadio). |
@valorkin, there is only reactive-checkbox example, reactive-radio is missing |
lol, true |
Here two Plunkers that show this issue with btnRadio : In ngx-boostrap@1.9.3 : http://plnkr.co/edit/t3tYCPC2Qag0GRQzHJLr I hope one can find a fix or a workaround quickly :) |
A Fix for that would be very nice! |
The ngx-bootstrap button group btnRadio directive is busted for reactive forms, so we just implement directly with events for now instead: valor-software/ngx-bootstrap#2581
The ngx-bootstrap button group btnRadio directive is busted for reactive forms, so we just implement directly with events for now instead: valor-software/ngx-bootstrap#2581
still doesn't works( |
Using btnRadio & reactive forms I can only switch the value of the radio button-group once.
Tested with ngx-boostrap@1.9.1 & angular@4.3.6:
https://stackblitz.com/edit/angular-eck1fy
(You can switch the radio from false to true, but not back)
The bug does not occur in ngx-bootstrap@1.7.1.
Same demo as above with v1.7.1:
https://stackblitz.com/edit/angular-ycuxdq
The text was updated successfully, but these errors were encountered: