Skip to content

Commit

Permalink
Fixes focus on modal to include tabindex #4370
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Jul 31, 2016
1 parent bd92491 commit 5476580
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Expand Up @@ -6,6 +6,7 @@
- **Form Validation** - Bracketed notation can now be omitted for rules, instead passing in bracketed values with the `value` parameter #3313
- **Dropdown** - Using `search selection` with `selectOnKeydown` will now highlight the partial search matching the currently keyboard selected value
- **Modal** - Modal now includes setting to enable/disable keyboard shortcuts
- **Modal** - Modal will now focus first tabable element, not just `input` #4370

**Bugs**
- **NPM** - Fixed `package.json` to allow either jQuery `2.x` or `3.x` #4254
Expand Down
2 changes: 1 addition & 1 deletion src/definitions/modules/modal.js
Expand Up @@ -579,7 +579,7 @@ $.fn.modal = function(parameters) {
set: {
autofocus: function() {
var
$inputs = $module.find(':input').filter(':visible'),
$inputs = $module.find('[tabindex], :input').filter(':visible'),
$autofocus = $inputs.filter('[autofocus]'),
$input = ($autofocus.length > 0)
? $autofocus.first()
Expand Down

0 comments on commit 5476580

Please sign in to comment.