Commit 818d4654 authored by catch's avatar catch

Issue #2113567 by jessebeach, nod_: Fixed Views dialogs don't close via escape.

parent bb54afd8
......@@ -28,10 +28,8 @@
$dialog.trigger('dialogButtonsChange');
}
// Refocus the first input element after validation errors.
if ($context.find('form').length) {
$context.find('input:first').focus();
}
// Force focus on the modal when the behavior is run.
$dialog.dialog('widget').trigger('focus');
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment