Skip to main content

Search and Top Navigation

#7503 closed bug (notabug)

Opened June 24, 2011 01:07AM UTC

Closed July 09, 2011 08:00AM UTC

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;

}

});

}

Attachments (0)
Change History (2)

Changed June 24, 2011 10:59AM UTC by rdworth comment:1

owner: → jessereiss
status: newpending

Please use jsFiddle or jsbin to provide a minimal test case

Changed July 09, 2011 08:00AM UTC by trac-o-bot comment:2

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!