Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Add reliable click handler for all autofill popup elements (#797)

Leendert de Borst18d92eccede9
diff --git a/browser-extension/src/entrypoints/contentScript/Popup.ts b/browser-extension/src/entrypoints/contentScript/Popup.ts
index 95fabf276..4051e45ce 100644
--- a/browser-extension/src/entrypoints/contentScript/Popup.ts
+++ b/browser-extension/src/entrypoints/contentScript/Popup.ts
@@ -590,7 +590,7 @@ function createCredentialList(credentials: Credential[], input: HTMLInputElement
`;
// Handle popout click
- popoutIcon.addEventListener('click', (e) => {
+ addReliableClickHandler(popoutIcon, (e) => {
e.stopPropagation(); // Prevent credential fill
sendMessage('OPEN_POPUP_WITH_CREDENTIAL', { credentialId: cred.Id }, 'background');
removeExistingPopup(rootContainer);
@@ -600,7 +600,7 @@ function createCredentialList(credentials: Credential[], input: HTMLInputElement
item.appendChild(popoutIcon);
// Update click handler to only trigger on credentialInfo
- credentialInfo.addEventListener('click', () => {
+ addReliableClickHandler(credentialInfo, () => {
fillCredential(cred, input);
removeExistingPopup(rootContainer);
});