igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

igxRipple - Mousedown event doesn't bubble up when igxRipple is attached to elements.

Open tkiryu opened this issue 8 years ago • 1 comments

Description

Mousedown event doesn't bubble up when igxRipple is attached to elements.

  • igniteui-angular version: 6.1.3
  • browser: N/A

Steps to reproduce

  1. Go to https://stackblitz.com/edit/igxripple-mousedown-issue.
  2. Open the stackblitz console.
  3. Click button, checkbox and div in "With igxRipple" section.
  4. Click button, checkbox and div in "Without igxRipple" section.

Result

On Step3, mousedown event doesn't bubble up. Only mouseup event does.

Expected result

Mousedown event should bubble up no matter whether igxRipple is attached or not.

tkiryu avatar Aug 22 '18 07:08 tkiryu

It seems that the following line causes this issue. https://github.com/IgniteUI/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/directives/ripple/ripple.directive.ts#L126

Why does igxRipple stop bubbling up mousedown event? If there is no particular reason to do so, could you remove this line?

tkiryu avatar Aug 22 '18 07:08 tkiryu