Opened 4 years ago

Last modified 23 months 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 okok
2 failok
3 failok

Change History (3)

comment:1 Changed 4 years ago by dylan

Milestone: tbd1.12

comment:2 Changed 3 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 23 months ago by dylan

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