Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit c605423

Browse files
author
Gabriel Schulhof
committed
Popup: When focusing on the container, do not bounce focus to an element inside it even if such an element is available. Fixes #5706.
1 parent 0896247 commit c605423

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

js/widgets/popup.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,6 @@ define( [
193193
} else if ( ui.focusElement[ 0 ] === ui.container[ 0 ] ) {
194194
ui.focusElement = $tgt;
195195
}
196-
} else if ( ui.focusElement && ui.focusElement[ 0 ] !== ui.container[ 0 ] ) {
197-
ui.container.blur();
198-
ui.focusElement.focus();
199196
}
200197

201198
this._ignoreResizeEvents();

0 commit comments

Comments
 (0)