mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-22 02:21:34 +01:00
[PM-5189] Fixing an issue where the inline menu might not close when switching between frames
This commit is contained in:
parent
ab45c70564
commit
0dfdad07e2
@ -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"}`,
|
||||
|
Loading…
Reference in New Issue
Block a user