[BUG] TypeError: Cannot set property 'key' of undefined (CheckMatrix)
ashleyasli opened this issue · comments
Aslihan (Ashley) Saylik commented
Environment
Hosting type: Local deployment
npm: 6.11.3
Global packages:
@angular/cli@8.3.10
angular-formio: 4.2.8
OS:
Windows 10
Steps to Reproduce
git clone git@github.com:formio/angular-demo.git
- npm install -g @angular/cli
- npm install
- Implemented #9 solution to the project
Expected behavior
Successful compilation
Observed behavior
I tried to implement "Checkmatrix" component into the form-builder. Form-builder didn't appear and I got this error message. (Seen below)
Form-builder part
I defined the form-builder like this:
<form-builder [options]= '{
"builder": {
"basic": false,
"advanced": false,
"data": false,
"layout": false,
"customBasic": {
"title": "Basic Components",
"weight": 0,
"default": false,
"components": {
"checkmatrix": true
}
}
}}'
[form]="form" class="formio" (change)="onChange($event)"></form-builder>