Bug 124852
| Summary: | "disabled" property on input type button still responds to touchstart events | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | jglawrence |
| Component: | UI Events | Assignee: | 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: | |||
jglawrence
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/122587323>
Abrar Rahman Protyasha
It'll be good to verify whether or not this still happens. I'll do that soon.