diff --git a/app/assets/javascripts/discourse/app/components/sidebar/section.js b/app/assets/javascripts/discourse/app/components/sidebar/section.js index c5da94691ec..7b348f64e44 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/section.js +++ b/app/assets/javascripts/discourse/app/components/sidebar/section.js @@ -39,6 +39,11 @@ export default class SidebarSection extends Component { } else { this.keyValueStore.setItem(this.collapsedSidebarSectionKey, true); } + + // remove focus from the toggle, but only on click + if (!event.key) { + document.activeElement.blur(); + } } @action