aboutsummaryrefslogtreecommitdiffstats
path: root/ui/effect.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/effect.js')
-rw-r--r--ui/effect.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/effect.js b/ui/effect.js
index a946c6e8b..86afea226 100644
--- a/ui/effect.js
+++ b/ui/effect.js
@@ -991,7 +991,7 @@ if ( $.uiBackCompat !== false ) {
// Fixes #7595 - Elements lose focus when wrapped.
if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
- $( active ).focus();
+ $( active ).trigger( "focus" );
}
wrapper = element.parent(); //Hotfix for jQuery 1.4 since some change in wrap() seems to actually lose the reference to the wrapped element
@@ -1032,7 +1032,7 @@ if ( $.uiBackCompat !== false ) {
// Fixes #7595 - Elements lose focus when wrapped.
if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
- $( active ).focus();
+ $( active ).trigger( "focus" );
}
}