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
Using NgModel and NgControl on Radio button causes TypeError: _this._state is undefined #9153
Comments
Have updated the plnkr to include a text input which works but radio button does not. |
Following is the smallest plnkr where i can reproduce the issue. |
That's because you bind If you want a default value, then assign it to the model (
Either
or
GitHub issues are for bug reports and feature requests. |
@zoechi plunk http://plnkr.co/edit/p4vyND has issue so please look at http://plnkr.co/edit/1G2mPd |
Each |
Plunker that at least doesn't produce exceptions http://plnkr.co/edit/1apvt8?p=preview |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Current behavior
Using NgModel and NgControl on Radio button causes following issue in console.
TypeError: _this._state is undefined
in FirefoxTypeError: Cannot read property 'value' of undefined
in chromeExpected/desired behavior
Toggling of Radio button should work.
http://plnkr.co/edit/1G2mPd
Toggling of Radio button should work.
The text was updated successfully, but these errors were encountered: