mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
[PM-5189] Fixing an issue where the inline menu might not close when switching between frames
This commit is contained in:
@@ -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"}`,
|
||||
|
||||
Reference in New Issue
Block a user