Skip to content

fix: don't steal focus from user's active element when handling consents#560

Open
jhult wants to merge 1 commit intocavi-au:masterfrom
jhult:fix/557-user-focus
Open

fix: don't steal focus from user's active element when handling consents#560
jhult wants to merge 1 commit intocavi-au:masterfrom
jhult:fix/557-user-focus

Conversation

@jhult
Copy link
Copy Markdown

@jhult jhult commented Jan 18, 2026

Fixes #557

When handling consent popups, the extension was unconditionally blurring the currently focused element. This caused issues when users were typing in textboxes mid-page load, as keystrokes would be lost when the consent handler stole focus.


Now, the extension only blurs the active element if it's inside the consent popup that was just handled, preserving user focus in other elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interference: Consent handling draws focus away from textbox (many sites)

1 participant