small fixes

This commit is contained in:
VLE2FE
2020-09-02 14:11:00 +02:00
parent cd4e2aa77b
commit 78093ce2ff
7 changed files with 26 additions and 20 deletions

View File

@ -122,14 +122,13 @@ export class RbArrayInputComponent implements ControlValueAccessor, OnInit, Afte
this.values = [this.values[0]];
res = this.values;
}
// if (!res.length) {
// res = [''];
// }
if (!res.length) {
res = [''];
}
this.onChange(res); // trigger ngModel with filled elements
}
writeValue(obj: any) { // add empty value on init
console.log(obj);
if (obj) {
if (this.pushTemplate !== null) {
if (this.pushPath) {