-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ion-refresher: on cancel, the original click event propagates #9668
Description
Ionic version: (check one with "x")
[ ] 1.x
[X] 2.x
I'm submitting a ... (check one with "x")
[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
Open the attached plunker, click on a list item (and hold, of course) and pull the list down, but not far enough for an update to happen, then release. The ion-refresher gets canceled as expected, but the click event gets propagated to the list item you originally clicked on.
Expected behavior:
The click event should get preventDefault or stopPropagation applied to it, so it doesn't apply to the list item, or anything under the cursor when the ion-refresher gets cancelled.
Steps to reproduce:
http://plnkr.co/edit/xYDYOQpIVtZaW2z3Fovk?p=preview
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.47
ios-deploy version: 1.9.0
ios-sim version: 5.0.13
OS: OS X El Capitan
Node Version: v6.9.1
Xcode version: Xcode 8.2 Build version 8C38