fix: Don't change the tab immediately when closing the key action popover (#895)

This commit is contained in:
dgyimesi
2019-01-20 22:55:06 +01:00
committed by László Monda
parent 3964698cf7
commit e18a98d8bb

View File

@@ -163,12 +163,13 @@ export class PopoverComponent implements OnChanges {
}
ngOnChanges(change: SimpleChanges) {
let tab: TabHeader;
if (this.keyPosition && this.wrapPosition && (change['keyPosition'] || change['wrapPosition'])) {
this.calculatePosition();
}
if (change['defaultKeyAction']) {
let tab: TabHeader;
this.disableRemapOnAllLayer = false;
if (this.defaultKeyAction instanceof KeystrokeAction) {
@@ -192,12 +193,13 @@ export class PopoverComponent implements OnChanges {
tabHeader.disabled = allowOnlyLayerTab && tabHeader.tabName !== TabName.Layer;
console.log(tabHeader);
}
this.selectTab(tab);
}
if (change['visible']) {
if (change['visible'].currentValue) {
this.animationState = 'opened';
this.selectTab(tab);
} else {
this.animationState = 'closed';
}