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:
@@ -440,7 +440,7 @@ export class OverlayBackground implements OverlayBackgroundInterface {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isFieldCurrentlyFocused) {
|
if (sender.frameId === this.focusedFieldData?.frameId && this.isFieldCurrentlyFocused) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -984,6 +984,7 @@ export class OverlayBackground implements OverlayBackgroundInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.storeOverlayPort(port);
|
this.storeOverlayPort(port);
|
||||||
|
port.onDisconnect.addListener(this.handlePortOnDisconnect);
|
||||||
port.onMessage.addListener(this.handleOverlayElementPortMessage);
|
port.onMessage.addListener(this.handleOverlayElementPortMessage);
|
||||||
port.postMessage({
|
port.postMessage({
|
||||||
command: `initAutofillInlineMenu${isInlineMenuListPort ? "List" : "Button"}`,
|
command: `initAutofillInlineMenu${isInlineMenuListPort ? "List" : "Button"}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user