Autofill form directly after creating new credential (#622)

This commit is contained in:
Leendert de Borst
2025-02-28 18:15:37 +01:00
parent 59726d87e8
commit 5d0540ee2b

View File

@@ -338,8 +338,11 @@ export function createAutofillPopup(input: HTMLInputElement, credentials: Creden
};
chrome.runtime.sendMessage({ type: 'CREATE_IDENTITY', credential }, () => {
// Refresh the popup to show new identity.
openAutofillPopup(input);
// Close popup.
removeExistingPopup();
// Fill the form with the new identity immediately.
fillCredential(credential, input);
});
} catch (error) {
console.error('Error creating identity:', error);