1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-28 14:13:22 +00:00

[PM-5189] Refactoring implementation

This commit is contained in:
Cesar Gonzalez
2024-06-07 12:04:05 -05:00
parent 873cfa51cd
commit 5bcb9aeb68
2 changed files with 3 additions and 3 deletions

View File

@@ -271,7 +271,7 @@ describe("AutofillInit", () => {
it("removes the overlay when filling the form", async () => {
const blurAndRemoveOverlaySpy = jest.spyOn(
autofillInit as any,
"blurAndRemoveInlineMenu",
"blurFocusedFieldAndRemoveInlineMenu",
);
sendMockExtensionMessage({
command: "fillForm",

View File

@@ -123,7 +123,7 @@ class AutofillInit implements AutofillInitInterface {
return;
}
this.blurAndRemoveInlineMenu();
this.blurFocusedFieldAndRemoveInlineMenu();
await this.sendExtensionMessage("updateIsFieldCurrentlyFilling", {
isFieldCurrentlyFilling: true,
});
@@ -143,7 +143,7 @@ class AutofillInit implements AutofillInitInterface {
* in cases where the background unlock or vault item reprompt popout
* is opened.
*/
private blurAndRemoveInlineMenu() {
private blurFocusedFieldAndRemoveInlineMenu() {
this.autofillOverlayContentService?.blurMostRecentlyFocusedField(true);
}