DEV: Forward the actual event into the header (#27987)

This commit is contained in:
Natalie Tay 2024-07-19 23:37:11 +08:00 committed by GitHub
parent 278ae6e5fd
commit ad04720dc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -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"

View File

@ -71,7 +71,7 @@ export default class SidebarSection extends Component {
}
@action
toggleSectionDisplay() {
toggleSectionDisplay(_, event) {
if (this.displaySectionContent) {
this.sidebarState.collapseSection(this.args.sectionName);
} else {