1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

[PM-5189] Fixing an issue where the inline menu might not close when switching between frames

This commit is contained in:
Cesar Gonzalez
2024-05-22 05:04:16 -05:00
parent ab45c70564
commit 0dfdad07e2

View File

@@ -440,7 +440,7 @@ export class OverlayBackground implements OverlayBackgroundInterface {
return;
}
if (this.isFieldCurrentlyFocused) {
if (sender.frameId === this.focusedFieldData?.frameId && this.isFieldCurrentlyFocused) {
return;
}
@@ -984,6 +984,7 @@ export class OverlayBackground implements OverlayBackgroundInterface {
}
this.storeOverlayPort(port);
port.onDisconnect.addListener(this.handlePortOnDisconnect);
port.onMessage.addListener(this.handleOverlayElementPortMessage);
port.postMessage({
command: `initAutofillInlineMenu${isInlineMenuListPort ? "List" : "Button"}`,