Bug Tracker

Modify

Ticket #7910 (closed bug: invalid)

Opened 2 years ago

Last modified 15 months ago

event.target is maybe undefined i

Reported by: EMVI Owned by: EMVI
Priority: undecided Milestone: 1.next
Component: event Version: 1.4.4
Keywords: Cc:
Blocking: Blocked by:

Description

in jQuery.event.special.change.filters.beforeactivate is event.target maybe undefined

.trigger('focus')

.focus()

.trigger(new $.Event({ target: myElementNode, pe: 'focus' });

I fixed it in an external file, so I don't want modify the original source.

var _beforeactivate = jQuery.event.special.change.filters.beforeactivate; jQuery.event.special.change.filters.focus = jQuery.event.special.change.filters.beforeactivate = function( e ) {

e.target = e.target | | e.currentTarget | | e.originalTarget;

_beforeactivate(e);

}

Change History

comment:1 Changed 2 years ago by rwaldron

  • Owner set to EMVI
  • Status changed from new to pending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket!

Additionally, test against the latest jQuery release and the jQuery 0 GIT version to ensure the issue still exists. Be Excellent to eachother!

comment:2 Changed 2 years ago by rwaldron

  • Component changed from unfiled to event

comment:3 Changed 2 years ago by EMVI

  • Status changed from pending to new

This error occurs only in one case so far. There is a DomNode relates to some widgets and several events are bound.

I can't post this case, because this script depends an several scripts of my employer that are not allowed to publish.

comment:4 Changed 2 years ago by rwaldron

  • Status changed from new to pending

Can you provide a reduced test case, that illustrates the bug using  http://jsfiddle.net

comment:5 Changed 2 years ago by trac-o-bot

  • Status changed from pending to closed
  • Resolution set to invalid

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.