fix: Don't change the tab immediately when closing the key action popover (#895)
This commit is contained in:
@@ -163,12 +163,13 @@ export class PopoverComponent implements OnChanges {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnChanges(change: SimpleChanges) {
|
ngOnChanges(change: SimpleChanges) {
|
||||||
|
let tab: TabHeader;
|
||||||
|
|
||||||
if (this.keyPosition && this.wrapPosition && (change['keyPosition'] || change['wrapPosition'])) {
|
if (this.keyPosition && this.wrapPosition && (change['keyPosition'] || change['wrapPosition'])) {
|
||||||
this.calculatePosition();
|
this.calculatePosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (change['defaultKeyAction']) {
|
if (change['defaultKeyAction']) {
|
||||||
let tab: TabHeader;
|
|
||||||
this.disableRemapOnAllLayer = false;
|
this.disableRemapOnAllLayer = false;
|
||||||
|
|
||||||
if (this.defaultKeyAction instanceof KeystrokeAction) {
|
if (this.defaultKeyAction instanceof KeystrokeAction) {
|
||||||
@@ -192,12 +193,13 @@ export class PopoverComponent implements OnChanges {
|
|||||||
tabHeader.disabled = allowOnlyLayerTab && tabHeader.tabName !== TabName.Layer;
|
tabHeader.disabled = allowOnlyLayerTab && tabHeader.tabName !== TabName.Layer;
|
||||||
console.log(tabHeader);
|
console.log(tabHeader);
|
||||||
}
|
}
|
||||||
this.selectTab(tab);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (change['visible']) {
|
if (change['visible']) {
|
||||||
if (change['visible'].currentValue) {
|
if (change['visible'].currentValue) {
|
||||||
this.animationState = 'opened';
|
this.animationState = 'opened';
|
||||||
|
|
||||||
|
this.selectTab(tab);
|
||||||
} else {
|
} else {
|
||||||
this.animationState = 'closed';
|
this.animationState = 'closed';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user