small fixes
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user