Opened 8 years ago

Closed 8 years ago

#7503 closed bug (notabug)

Modal Dialog Input Blur Event Doesn't Trigger on Input Focus

Reported by: jessereiss Owned by: jessereiss
Priority: minor Milestone: 1.9.0
Component: ui.dialog Version: 1.8.13
Keywords: Cc:
Blocked by: Blocking:

Description

I am experiencing a bug with the ui.dialog with the modal option set to true in Chrome 12.0.742.100.

When clicking from one focused input element to another, the blur event of the initial focused element does not trigger. I believe this is related to the following lines of code, though I cannot be sure.

if (options.modal) {

uiDialog.bind('keypress.ui-dialog', function(event) {

if (event.keyCode !== $.ui.keyCode.TAB) {

return;

}

var tabbables = $(':tabbable', this),

first = tabbables.filter(':first'), last = tabbables.filter(':last');

if (event.target === last[0] && !event.shiftKey) {

first.focus(1); return false;

} else if (event.target === first[0] && event.shiftKey) {

last.focus(1); return false;

}

});

}

Change History (2)

comment:1 Changed 8 years ago by rdworth

Owner: set to jessereiss
Status: newpending

Please use jsFiddle or jsbin to provide a minimal test case

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

Resolution: invalid
Status: pendingclosed

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!

Note: See TracTickets for help on using tickets.