Browse Source

Merge pull request #9729 from Dmitriymush/bug-fix/update-multiple-attributes

Fixed JSON type attribute in multiple input widget
pull/9782/head
Igor Kulikov 3 years ago
committed by GitHub
parent
commit
c9cc9eef95
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui-ngx/src/app/modules/home/components/widget/lib/multiple-input-widget.component.ts

4
ui-ngx/src/app/modules/home/components/widget/lib/multiple-input-widget.component.ts

@ -783,10 +783,10 @@ export class MultipleInputWidgetComponent extends PageComponent implements OnIni
}
}).afterClosed().subscribe(
(res) => {
if (!isEqual(res, formControl.value)) {
if (isDefined(res) && !isEqual(res, formControl.value)) {
formControl.patchValue(res);
formControl.markAsDirty();
if(!this.settings.showActionButtons) {
if (!this.settings.showActionButtons) {
this.inputChanged(source, key);
}
}

Loading…
Cancel
Save