aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2014-06-10 12:38:26 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2014-06-10 13:54:58 +0200
commita0b84767a76098cdcc6375dfe28a7fee866bd395 (patch)
treec4fe087eefac47e109342f09b635fabc18057597 /ui
parentc31d5f06881069bae73b09c069a45b9d74c28bfe (diff)
downloadjquery-ui-a0b84767a76098cdcc6375dfe28a7fee866bd395.tar.gz
jquery-ui-a0b84767a76098cdcc6375dfe28a7fee866bd395.zip
Dialog: Fix shift-tab handling, focus the correct element
Copy-paste error introduced in df6110c0d424ff3306fdd5576011f2dcf4d242d0 Updates the tabbing test to be more specific about which element should have focus, instead of only checking if focus is within the dialog. Ref #9646 Ref #10103 Closes gh-1264
Diffstat (limited to 'ui')
-rw-r--r--ui/dialog.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/dialog.js b/ui/dialog.js
index 358000881..7998b042c 100644
--- a/ui/dialog.js
+++ b/ui/dialog.js
@@ -348,7 +348,7 @@ return $.widget( "ui.dialog", {
event.preventDefault();
} else if ( ( event.target === first[0] || event.target === this.uiDialog[0] ) && event.shiftKey ) {
this._delay(function() {
- first.focus();
+ last.focus();
});
event.preventDefault();
}