Skip to content

Commit 5fce8b5

Browse files
committed
Fix blurring current active element within pjax container
Fixes #675
1 parent 573f74c commit 5fce8b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.pjax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ function pjax(options) {
293293
}
294294

295295
// Only blur the focus if the focused element is within the container.
296-
var blurFocus = $.contains(options.container, document.activeElement)
296+
var blurFocus = $.contains(context, document.activeElement)
297297

298298
// Clear out any focused controls before inserting new page contents.
299299
if (blurFocus) {

0 commit comments

Comments
 (0)