From aa10901dacf562ef64d4015d3b391934ee07a64f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 28 Mar 2023 23:43:38 +0200 Subject: jira-fixes.user.js: Disconnect MutationObserver We only need the observer once to focus the left column on page load. After that, we don't need to be listening to DOM changes. Without disconnecting the observer, this broke '@'-name completion to reference other users. Because that completion adds a new element (the user list picker) to the column, our mutation observer gets called, and we focus the left column, un-focussing the comment area. Glad to have finally discovered why '@'-name completion in Jira comments broke for me. --- jira-fixes.user.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jira-fixes.user.js b/jira-fixes.user.js index 6ba98a2..9eaf20c 100644 --- a/jira-fixes.user.js +++ b/jira-fixes.user.js @@ -45,6 +45,7 @@ function ticket_page_focus_left_content_column () { } left_column_content.focus(); + observer.disconnect(); } }); -- cgit v1.2.3