Opened 6 years ago

Last modified 5 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:


When you call preventDefault on an event the defaultPrevented property is not updated when using a touch device.


on(document.querySelector('.btn'),, function (e) {
  assert(1, e.defaultPrevented, false);
  assert(2, e.defaultPrevented, true);
on(document,, function (e) {
  assert(3, e.defaultPrevented, true);


touch non-touch
1 okok
2 failok
3 failok

Change History (3)

comment:1 Changed 6 years ago by dylan

Milestone: tbd1.12

comment:2 Changed 6 years ago by dylan

Milestone: 1.121.13

Ticket planning... move current 1.12 tickets out to 1.13 that likely won't get fixed in 1.12.

comment:3 Changed 5 years ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.