Opened 7 years ago

Last modified 4 years ago

#18457 new defect

on.selector throws an error for event handlers registered on document

Reported by: chris2m Owned by: Kris Zyp
Priority: undecided Milestone: 1.14
Component: Events Version: 1.10.3
Keywords: Cc:
Blocked By: Blocking:


Example: on(document, on.selector('.modal', 'focusin'), function (e) {})

The method on.matches in "dojo/on" checks nodeType != 1 and executes node = node.parentNode. After this node == null. Later it compares (node = node.parentNode) which causes an error.

Change History (4)

comment:1 Changed 7 years ago by bill

Component: CoreEvents
Owner: set to Kris Zyp

comment:2 Changed 6 years ago by dylan

Milestone: tbd1.11

comment:3 Changed 6 years ago by dylan

Milestone: 1.111.12

comment:4 Changed 4 years ago by dylan

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