diff --git a/jquery.pjax.js b/jquery.pjax.js index d57269d4..d0f3f4dc 100644 --- a/jquery.pjax.js +++ b/jquery.pjax.js @@ -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) {