1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-09 19:28:06 +01:00

[PM-5189] Fixing an issue found when switching between open windows

This commit is contained in:
Cesar Gonzalez 2024-06-25 12:42:57 -05:00
parent a44f594e6d
commit 2bfe1c70ed
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF

View File

@ -273,6 +273,9 @@ export class OverlayBackground implements OverlayBackgroundInterface {
return inlineMenuCipherData;
}
/**
* Gets the currently focused field and closes the inline menu on that tab.
*/
private async closeInlineMenuAfterCiphersUpdate() {
const focusedFieldTab = await BrowserApi.getTab(this.focusedFieldData.tabId);
this.closeInlineMenu({ tab: focusedFieldTab }, { forceCloseInlineMenu: true });