Phantom touchend event after alert from click listener
| Originator: | mattcg | ||
| Number: | rdar://12884944 | Date Originated: | 14-Dec-2012 07:45 PM |
| Status: | Open | Resolved: | |
| Product: | Safari | Product Version: | As on iOS 6.1 beta 3 |
| Classification: | Reproducible: | Always |
Summary: From the listener function of a touchend event on an element, dispatching a click event created using document.createEvent at that same element causes any click event listener on the element to be fired a second time after dismissing an alert and clicking anywhere else on the page. Steps to Reproduce: 1. Load the attached test case in Safari on iOS 6.0 or 6.1 beta. 2. Tap the first button. 3. Dismiss the alert. 4. Tap the second button. Expected Results: Nothing happens. Actual Results: A second alert pops up. Regression: Replicable on iOS 5.1. Notes: The attached test case is also available at http://dev.labs.ft.com/matt/fastclick/tests/23-reduced.html.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!