mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-24 21:41:33 +01:00
[PM-5189] Refactoring implementation
This commit is contained in:
parent
873cfa51cd
commit
5bcb9aeb68
@ -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",
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user