[PM-8833] Refining mouse interactions with filled fields

This commit is contained in:
Cesar Gonzalez 2024-09-23 11:16:32 -05:00
parent 3fe78fdead
commit 8583a52be8
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF
1 changed files with 1 additions and 4 deletions

View File

@ -315,12 +315,9 @@ export class OverlayBackground implements OverlayBackgroundInterface {
}
async handleOverlayCiphersUpdate(updateOverlayCiphersParams: UpdateOverlayCiphersParams) {
if (!updateOverlayCiphersParams) {
return;
}
const { updateAllCipherTypes, openInlineMenu } = updateOverlayCiphersParams;
const currentTab = await BrowserApi.getTabFromCurrentWindowId();
if (this.focusedFieldData && currentTab?.id !== this.focusedFieldData.tabId) {
const focusedFieldTab = await BrowserApi.getTab(this.focusedFieldData.tabId);
this.closeInlineMenu({ tab: focusedFieldTab }, { forceCloseInlineMenu: true });