A platform for community discussion. Free, open, simple.
DEV: Forward the actual event into the header (#27987)
Natalie Tayad04720dc6b0
diff --git a/app/assets/javascripts/discourse/app/components/sidebar/section-header.gjs b/app/assets/javascripts/discourse/app/components/sidebar/section-header.gjsindex 5458ac7044f..58c2d60be09 100644--- a/app/assets/javascripts/discourse/app/components/sidebar/section-header.gjs+++ b/app/assets/javascripts/discourse/app/components/sidebar/section-header.gjs@@ -5,6 +5,7 @@ const SidebarSectionHeader = <template><DButton@title="sidebar.toggle_section"@action={{@toggleSectionDisplay}}+ @forwardEvent={{true}}aria-controls={{@sidebarSectionContentId}}aria-expanded={{if @isExpanded "true" "false"}}class="sidebar-section-header sidebar-section-header-collapsable btn-transparent"diff --git a/app/assets/javascripts/discourse/app/components/sidebar/section.gjs b/app/assets/javascripts/discourse/app/components/sidebar/section.gjsindex d565b27a247..15892149644 100644--- a/app/assets/javascripts/discourse/app/components/sidebar/section.gjs+++ b/app/assets/javascripts/discourse/app/components/sidebar/section.gjs@@ -71,7 +71,7 @@ export default class SidebarSection extends Component {}@action- toggleSectionDisplay() {+ toggleSectionDisplay(_, event) {if (this.displaySectionContent) {this.sidebarState.collapseSection(this.args.sectionName);} else {