Ngx-bootstrap: fix(buttons): btnRadio does not work with reactive forms in versions >1.7.1

Created on 4 Sep 2017  路  7Comments  路  Source: valor-software/ngx-bootstrap

Using btnRadio & reactive forms I can only switch the value of the radio button-group once.

Tested with [email protected] & [email protected]:
https://stackblitz.com/edit/angular-eck1fy
(You can switch the radio from false to true, but not back)

The bug does not occur in [email protected].
Same demo as above with v1.7.1:
https://stackblitz.com/edit/angular-ycuxdq

comp(buttons) easy (hours) issue medium

Most helpful comment

Here two Plunkers that show this issue with btnRadio :

In [email protected] : http://plnkr.co/edit/t3tYCPC2Qag0GRQzHJLr
In [email protected] : http://plnkr.co/edit/QkxYbbbfbwO07GwcmkdN

I hope one can find a fix or a workaround quickly :)

All 7 comments

Interesting, cuz works on demo page
http://valor-software.com/ngx-bootstrap/#/buttons#radio

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 [email protected] : http://plnkr.co/edit/t3tYCPC2Qag0GRQzHJLr
In [email protected] : http://plnkr.co/edit/QkxYbbbfbwO07GwcmkdN

I hope one can find a fix or a workaround quickly :)

A Fix for that would be very nice!

still doesn't works(
checked in 2.0.0-rc.0

Was this page helpful?
0 / 5 - 0 ratings