Bug 124852 - "disabled" property on input type button still responds to touchstart events
Summary: "disabled" property on input type button still responds to touchstart events
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Other
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on: 251246
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-25 12:18 PST by jglawrence
Modified: 2024-02-08 15:36 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.