Skip to content

Commit

Permalink
feat(accordion): using dropdown(ngx-bootstrap) inside an accordion (#…
Browse files Browse the repository at this point in the history
…6154)

* feat(accordion): using dropdown(ngx-bootstrap) inside an accordian header

* fix(dropdown): add stopPropogation on hostlistener

* fix(dropdown): add stopPropogation on hostlistener
  • Loading branch information
SvetlanaMuravlova authored Jul 7, 2021
1 parent fe2bb28 commit 3947950
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/doc-pages/accordion/src/lib/accordion.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export { AccordionSectionComponent } from './accordion-section.component';
CommonModule,
FormsModule,
DocsModule,
RouterModule.forChild(routes)
RouterModule.forChild(routes),
],
exports: [AccordionSectionComponent],
entryComponents: [...DEMO_COMPONENTS]
Expand Down
5 changes: 3 additions & 2 deletions src/dropdown/bs-dropdown-toggle.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ export class BsDropdownToggleDirective implements OnDestroy {
);
}

@HostListener('click', [])
onClick(): void {
@HostListener('click', ['$event'])
onClick(event: MouseEvent): void {
event.stopPropagation();
if (this.isDisabled) {
return;
}
Expand Down

0 comments on commit 3947950

Please sign in to comment.