I'm using ng-bootstrap ngbRadioGroup
as follows:
<div>
<label>Deductible:</label>
<div class="radio-group" [(ngModel)]="transaction.isDeductible" ngbRadioGroup name="isDeductible">
<label class="btn btn-secondary"><input type="radio" [value]="true">Yes</label>
<label class="btn btn-secondary"><input type="radio" [value]="false">No</label>
</div>
</div>
Unfortunately, selecting one of the options does not set the transaction.isDeductible
property.
What could be the problem?
Thanks in advance for any insights, let me know if I could provide additional relevant information :)
EDIT:
Might be worth nothing this happens with two more RadioGroups, i provided the simplest one here
For me, removing the
../node_modules/bootstrap/dist/js/bootstrap.js
line fromangular-cli.json
scripts include fixed the issue. Obviously this isn't a fix for everyone if you need Bootstrap JavaScript!So there must be a conflict between ng-bootstrap and the Bootstrap JavaScript. I don't have the time to look into it at the moment, maybe someone else could? I may comeback to this if I need to use it.