diff --git a/demo/src/app/components/+accordion/accordion-section.component.ts b/demo/src/app/components/+accordion/accordion-section.component.ts index ece6447a5c..f2f375c297 100644 --- a/demo/src/app/components/+accordion/accordion-section.component.ts +++ b/demo/src/app/components/+accordion/accordion-section.component.ts @@ -7,8 +7,6 @@ import { DEMOS } from './demos'; // webpack html imports let titleDoc = require('html-loader!markdown-loader!./docs/usage.md'); -console.log('loaded async'); - @Component({ selector: 'accordion-section', template: ` diff --git a/src/dropdown/bs-dropdown-toggle.directive.ts b/src/dropdown/bs-dropdown-toggle.directive.ts index 58a62a8bd7..a58601ea5f 100644 --- a/src/dropdown/bs-dropdown-toggle.directive.ts +++ b/src/dropdown/bs-dropdown-toggle.directive.ts @@ -39,8 +39,9 @@ export class BsDropdownToggleDirective implements OnDestroy { ); } - @HostListener('click') - onClick(): void { + @HostListener('click', ['$event']) + onClick(event: MouseEvent): void { + event.stopPropagation(); if (this.isDisabled) { return; }