Merge pull request #7471 from ArtemDzhereleiko/AD/bug-fix/event-filter

[3.4.2] UI: Fixed height and console error for Event filter panel
This commit is contained in:
Andrew Shvayka 2022-11-01 11:42:52 +02:00 committed by GitHub
commit b8b7cbb8cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -108,7 +108,7 @@ export class EventFilterPanelComponent {
changeIsError(value: boolean | string) { changeIsError(value: boolean | string) {
if (this.conditionError && value === '') { if (this.conditionError && value === '') {
this.eventFilterFormGroup.get('error').reset('', {emitEvent: false}); this.eventFilterFormGroup.get('errorStr').reset('', {emitEvent: false});
} }
} }
} }

View File

@ -440,6 +440,8 @@ export class EventTableConfig extends EntityTableConfig<Event, TimePageLink> {
}; };
config.positionStrategy = this.overlay.position().flexibleConnectedTo(target as HTMLElement) config.positionStrategy = this.overlay.position().flexibleConnectedTo(target as HTMLElement)
.withPositions([connectedPosition]); .withPositions([connectedPosition]);
config.maxHeight = '70vh';
config.height = 'min-content';
const overlayRef = this.overlay.create(config); const overlayRef = this.overlay.create(config);
overlayRef.backdropClick().subscribe(() => { overlayRef.backdropClick().subscribe(() => {