DEV: Forward the actual event into the header (#27987)
This commit is contained in:
parent
278ae6e5fd
commit
ad04720dc6
|
@ -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"
|
||||
|
|
|
@ -71,7 +71,7 @@ export default class SidebarSection extends Component {
|
|||
}
|
||||
|
||||
@action
|
||||
toggleSectionDisplay() {
|
||||
toggleSectionDisplay(_, event) {
|
||||
if (this.displaySectionContent) {
|
||||
this.sidebarState.collapseSection(this.args.sectionName);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue