mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 12:02:46 +08:00
DEV: Use toggle event for sidebar more-section-links component (#17729)
A click event is trigger on a link click as well which is not what we want. This caused the links to trigger a full reload instead of an Ember transition for some reason.
This commit is contained in:
parent
a6e815f243
commit
c9a3aba5a2
|
@ -41,8 +41,6 @@ export default class SidebarMoreSectionLinks extends GlimmerComponent {
|
|||
document
|
||||
.querySelector(".sidebar-more-section-links-details")
|
||||
?.removeAttribute("open");
|
||||
|
||||
this.toggleSectionLinks();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
@model={{this.activeSectionLink.model}} />
|
||||
{{/if}}
|
||||
|
||||
<details class="sidebar-more-section-links-details" {{on "click" this.toggleSectionLinks}}>
|
||||
<details class="sidebar-more-section-links-details" {{on "toggle" this.toggleSectionLinks}}>
|
||||
<summary class="sidebar-more-section-links-details-summary" >
|
||||
{{i18n "sidebar.more_count" (hash count=this.sectionLinks.length)}}
|
||||
</summary>
|
||||
|
|
Loading…
Reference in New Issue
Block a user