Browse Source

Fix autofocus

dimmer-flex
jlukic 9 years ago
parent
commit
21f13cd8c7
1 changed files with 5 additions and 3 deletions
  1. 8
      src/definitions/modules/modal.js

8
src/definitions/modules/modal.js

@ -521,10 +521,12 @@ $.fn.modal = function(parameters) {
$inputs = $module.filter(':input').filter(':visible'),
$autofocus = $inputs.filter('[autofocus]'),
$input = ($autofocus.length > 0)
? $autofocus
: $inputs
? $autofocus.first()
: $inputs.first()
;
$input.first().focus();
if($input.length > 0) {
$input.focus();
}
}
},
clickaway: function() {

Loading…
Cancel
Save