igniteui-angular
igniteui-angular copied to clipboard
igxRipple - Mousedown event doesn't bubble up when igxRipple is attached to elements.
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
- Go to https://stackblitz.com/edit/igxripple-mousedown-issue.
- Open the stackblitz console.
- Click button, checkbox and div in "With igxRipple" section.
- 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.
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?