Opened 5 years ago
Last modified 3 years ago
#18775 new defect
preventDefault() does not update the defaultPrevented property on touch devices
Reported by: | jami_me | Owned by: | dylan |
---|---|---|---|
Priority: | undecided | Milestone: | 1.14 |
Component: | Events | Version: | 1.10.4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
When you call preventDefault on an event the defaultPrevented property is not updated when using a touch device.
Example
on(document.querySelector('.btn'), touch.press, function (e) { assert(1, e.defaultPrevented, false); e.preventDefault(); assert(2, e.defaultPrevented, true); }); on(document, touch.press, function (e) { assert(3, e.defaultPrevented, true); });
Results
touch | non-touch | |
---|---|---|
1 | ok | ok |
2 | fail | ok |
3 | fail | ok |
Change History (3)
comment:1 Changed 5 years ago by
Milestone: | tbd → 1.12 |
---|
comment:2 Changed 4 years ago by
Milestone: | 1.12 → 1.13 |
---|
comment:3 Changed 3 years ago by
Milestone: | 1.13 → 1.14 |
---|
Note: See
TracTickets for help on using
tickets.
Ticket planning... move current 1.12 tickets out to 1.13 that likely won't get fixed in 1.12.