Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jquery.pjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function pjax(options) {
}

// Only blur the focus if the focused element is within the container.
var blurFocus = $.contains(context, document.activeElement)
var blurFocus = $.contains(context.get(0), document.activeElement)

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