Merge pull request #9126 from rusikv/bug/version-control-remove-other-entities-popover

Fix for 'remove other entities' popover in version control
This commit is contained in:
Igor Kulikov 2023-08-25 12:50:29 +03:00 committed by GitHub
commit e83aebead8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,7 +218,7 @@ export class EntityTypesVersionLoadComponent extends PageComponent implements On
onRemoveOtherEntities(removeOtherEntitiesCheckbox: MatCheckbox, entityTypeControl: AbstractControl) {
const removeOtherEntities: boolean = entityTypeControl.get('config.removeOtherEntities').value;
if (removeOtherEntities) {
entityTypeControl.get('config').get('removeOtherEntities').patchValue(false, {emitEvent: false});
entityTypeControl.get('config').get('removeOtherEntities').patchValue(false, {emitEvent: true});
const trigger = $('.mdc-checkbox__background', removeOtherEntitiesCheckbox._elementRef.nativeElement)[0];
if (this.popoverService.hasPopover(trigger)) {
this.popoverService.hidePopover(trigger);