Browse Source

refactor(core): remove unwanted click event trigger

pull/2127/head
thediaval 7 years ago
parent
commit
af114e9a48
  1. 3
      npm/ng-packs/packages/core/src/lib/tests/stop-propagation.directive.spec.ts

3
npm/ng-packs/packages/core/src/lib/tests/stop-propagation.directive.spec.ts

@ -25,11 +25,10 @@ describe('ClickEventStopPropagationDirective', () => {
});
test('should be created', () => {
spectator.click('a');
expect(directive).toBeTruthy();
});
test("should not call click event of parent when child element's click event is triggered", done => {
test('should not call click event of parent when child element is clicked', done => {
spectator.setHostInput({ parentClickEventFn, childClickEventFn });
spectator.click('a');
spectator.detectChanges();

Loading…
Cancel
Save