Skip to content
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

Disabled class is not added to radio button label when used with *ngIf #2635

Closed
Fredx87 opened this issue Aug 22, 2018 · 1 comment
Closed

Comments

@Fredx87
Copy link

Fredx87 commented Aug 22, 2018

Bug description:

I'm using radio buttons with reactive forms. Normally when the control is disabled, the "disabled" class is added to the label, but when on the label there is also a *ngIf, the disabled class is not applied anymore. The same problem is not present with checkbox buttons.

Link to minimally-working plunker that reproduces the issue:

https://stackblitz.com/edit/angular-ycgkcs

Version of Angular, ng-bootstrap, and Bootstrap:

Angular: 6.1

ng-bootstrap: 2.2 / 3.0

Bootstrap: 4.0

@pkozlowski-opensource
Copy link
Member

Thnx for in-depth investigation done by @benouat we can confirm that this is a bug on our end. Will fix it for the next release. Thnx for reporting @Fredx87 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants