Bug 124852

Summary: "disabled" property on input type button still responds to touchstart events
Product: WebKit Reporter: jglawrence
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: a_protyasha, bfulgham, karlcow, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar
Version: 528+ (Nightly build)   
Hardware: Other   
OS: Other   
Bug Depends on: 251246    
Bug Blocks:    

Description jglawrence 2013-11-25 12:18:22 PST
This bug shows up when using touch events in place of click events. I have specifically seen this on iOS and Android, up to 7.0.3 & 4.0 respectively. When a button has the "disabled" property, touch events will still trigger the button's event handlers while click events will not. The desired behavior is that the event handlers are ignored as the button is disabled.

To reproduce, create an input element with type="button". Set the input to "disabled" with an event handler bound to it. Run this code on an iOS or Android device, click the 'disabled' button, and you will see you event handler code run.
Comment 1 Radar WebKit Bug Importer 2024-02-08 15:28:50 PST
<rdar://problem/122587323>
Comment 2 Abrar Rahman Protyasha 2024-02-08 15:36:29 PST
It'll be good to verify whether or not this still happens. I'll do that soon.