Skip to content

Fix clicking on username in tab complete#99

Merged
danthedaniel merged 1 commit intomainfrom
allow-clicking-in-tab-complete
Mar 18, 2025
Merged

Fix clicking on username in tab complete#99
danthedaniel merged 1 commit intomainfrom
allow-clicking-in-tab-complete

Conversation

@creesch
Copy link
Copy Markdown
Collaborator

@creesch creesch commented Mar 18, 2025

Clicking on usernames in tab complete did not work as it was using a click event. The click event causes a blur event on the chat input, which is used to hide the tab list.

// Hide tablist when textarea loses focus
chatInputElement.addEventListener('blur', function () {
    tabListManager.hide();
});

Causing the click to never be processed properly. Switching to a mousedown event fixes this.

@danthedaniel danthedaniel merged commit 3c8d193 into main Mar 18, 2025
6 checks passed
@danthedaniel danthedaniel deleted the allow-clicking-in-tab-complete branch March 18, 2025 22:15
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.

2 participants